aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-24 05:54:44 +0000
committerAdam Frisby2007-07-24 05:54:44 +0000
commit2760378f7ae9fc9b804b9a4a2936ea7c38e75876 (patch)
treeab7ff67cde1d44231b2cb32b0e703ad1d7ad3bf5 /OpenSim/Region/Environment/Scenes/Scene.cs
parent* SendLayerData overload including coords now uses patch number rather than c... (diff)
downloadopensim-SC-2760378f7ae9fc9b804b9a4a2936ea7c38e75876.zip
opensim-SC-2760378f7ae9fc9b804b9a4a2936ea7c38e75876.tar.gz
opensim-SC-2760378f7ae9fc9b804b9a4a2936ea7c38e75876.tar.bz2
opensim-SC-2760378f7ae9fc9b804b9a4a2936ea7c38e75876.tar.xz
* Users doing terraforming should see updates instantly now.
* Other viewers in the sim will see updates no more than once every 5 seconds.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs30
1 files changed, 1 insertions, 29 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index b2ae87d..9849145 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -237,7 +237,7 @@ namespace OpenSim.Region.Environment.Scenes
237 } 237 }
238 238
239 terrainCheckCount++; 239 terrainCheckCount++;
240 if (terrainCheckCount >= 5) 240 if (terrainCheckCount >= 50)
241 { 241 {
242 terrainCheckCount = 0; 242 terrainCheckCount = 0;
243 243
@@ -373,34 +373,6 @@ namespace OpenSim.Region.Environment.Scenes
373 } 373 }
374 } 374 }
375 375
376 /// <summary>
377 /// Rebuilds the terrain assuming changes occured at a specified point[?]
378 /// </summary>
379 /// <param name="changes">???</param>
380 /// <param name="pointx">???</param>
381 /// <param name="pointy">???</param>
382 public void RegenerateTerrain(bool changes, int pointx, int pointy)
383 {
384 try
385 {
386 if (changes)
387 {
388 /* Dont save here, rely on tainting system instead */
389
390 float[] terrain = Terrain.GetHeights1D();
391
392 ForEachScenePresence(delegate(ScenePresence presence)
393 {
394 SendLayerData(pointx, pointy, presence.ControllingClient, terrain);
395 });
396 }
397 }
398 catch (Exception e)
399 {
400 MainLog.Instance.Warn("terrain", "World.cs: RegenerateTerrain() - Failed with exception " + e.ToString());
401 }
402 }
403
404 #endregion 376 #endregion
405 377
406 #region Load Terrain 378 #region Load Terrain