diff options
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLSimulationData.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs index e2b6953..ae78814 100644 --- a/OpenSim/Data/MySQL/MySQLSimulationData.cs +++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs | |||
@@ -817,6 +817,7 @@ namespace OpenSim.Data.MySQL | |||
817 | nWP.cloudScrollY = Convert.ToSingle(result["cloud_scroll_y"]); | 817 | nWP.cloudScrollY = Convert.ToSingle(result["cloud_scroll_y"]); |
818 | nWP.cloudScrollYLock = Convert.ToBoolean(result["cloud_scroll_y_lock"]); | 818 | nWP.cloudScrollYLock = Convert.ToBoolean(result["cloud_scroll_y_lock"]); |
819 | nWP.drawClassicClouds = Convert.ToBoolean(result["draw_classic_clouds"]); | 819 | nWP.drawClassicClouds = Convert.ToBoolean(result["draw_classic_clouds"]); |
820 | nWP.valid = true; | ||
820 | } | 821 | } |
821 | } | 822 | } |
822 | } | 823 | } |
@@ -964,6 +965,21 @@ namespace OpenSim.Data.MySQL | |||
964 | } | 965 | } |
965 | } | 966 | } |
966 | 967 | ||
968 | public void RemoveRegionWindlightSettings(UUID regionID) | ||
969 | { | ||
970 | using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) | ||
971 | { | ||
972 | dbcon.Open(); | ||
973 | |||
974 | using (MySqlCommand cmd = dbcon.CreateCommand()) | ||
975 | { | ||
976 | cmd.CommandText = "delete from `regionwindlight` where `region_id`=?regionID"; | ||
977 | cmd.Parameters.AddWithValue("?regionID", regionID.ToString()); | ||
978 | ExecuteNonQuery(cmd); | ||
979 | } | ||
980 | } | ||
981 | } | ||
982 | |||
967 | public void StoreRegionSettings(RegionSettings rs) | 983 | public void StoreRegionSettings(RegionSettings rs) |
968 | { | 984 | { |
969 | lock (m_dbLock) | 985 | lock (m_dbLock) |