From 2c90c6102037e0b0332fd8fe2a48627dee80158a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 21 Jul 2007 07:29:37 +0000 Subject: * Issue#206 - Casting of a LLUUID from XMLRPC hashtable causes an error. (Thanks Babblefrog) * Issue#205 - MySQLManager User Creation support readded (Thanks Babblefrog + adjohn) * Issue#204 - Clients now recieve terrain updates properly (Thanks Babblefrog) [May do some slight modifications on this to make it an event] --- OpenSim/Region/Environment/Scenes/Scene.cs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index a660d82..acd7f3f 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -235,6 +235,27 @@ namespace OpenSim.Region.Environment.Scenes storageCount = 0; } + if (Terrain.tainted > 0) + { + lock (m_syncRoot) + { + phyScene.SetTerrain(Terrain.getHeights1D()); + } + + storageManager.DataStore.StoreTerrain(Terrain.getHeights2DD()); + + ForEachScenePresence(delegate(ScenePresence presence) + { + SendLayerData(presence.ControllingClient); + }); + + foreach (LLUUID UUID in Entities.Keys) + { + Entities[UUID].LandRenegerated(); + } + Terrain.tainted = 0; + } + landPrimCheckCount++; if (landPrimCheckCount > 50) //check every 5 seconds for tainted prims { @@ -559,6 +580,7 @@ namespace OpenSim.Region.Environment.Scenes client.OnObjectName += PrimName; client.OnLinkObjects += LinkObjects; client.OnObjectDuplicate += DuplicateObject; + client.OnModifyTerrain += ModifyTerrain; client.OnParcelPropertiesRequest += new ParcelPropertiesRequest(m_LandManager.handleParcelPropertiesRequest); client.OnParcelDivideRequest += new ParcelDivideRequest(m_LandManager.handleParcelDivideRequest); @@ -969,4 +991,4 @@ namespace OpenSim.Region.Environment.Scenes } #endregion } -} \ No newline at end of file +} -- cgit v1.1