diff options
author | Adam Frisby | 2007-05-27 06:13:57 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-27 06:13:57 +0000 |
commit | 0ede8140e7e7b93e98283384eec893f77ee69c16 (patch) | |
tree | e1f4131f5a32888080d3e3478f2719ba82ef0387 | |
parent | * Added support for 13 Channel .RAW files. Untested but should work fine (fai... (diff) | |
download | opensim-SC_OLD-0ede8140e7e7b93e98283384eec893f77ee69c16.zip opensim-SC_OLD-0ede8140e7e7b93e98283384eec893f77ee69c16.tar.gz opensim-SC_OLD-0ede8140e7e7b93e98283384eec893f77ee69c16.tar.bz2 opensim-SC_OLD-0ede8140e7e7b93e98283384eec893f77ee69c16.tar.xz |
* Terrain now resends when it's been tainted. This means you should be able to load terrains and see the results without relogging. (Just wait for the next Backup call -- once every two minutes). Needs testing.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/world/World.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/World.cs b/OpenSim/OpenSim.RegionServer/world/World.cs index 1991b74..68516d2 100644 --- a/OpenSim/OpenSim.RegionServer/world/World.cs +++ b/OpenSim/OpenSim.RegionServer/world/World.cs | |||
@@ -231,9 +231,16 @@ namespace OpenSim.world | |||
231 | localStorage.SaveMap(Terrain.getHeights1D()); | 231 | localStorage.SaveMap(Terrain.getHeights1D()); |
232 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain saved, informing Physics."); | 232 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain saved, informing Physics."); |
233 | phyScene.SetTerrain(Terrain.getHeights1D()); | 233 | phyScene.SetTerrain(Terrain.getHeights1D()); |
234 | |||
235 | // Needs optimising to just send patches which have changed. | ||
236 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain changed, informing Clients."); | ||
237 | foreach (ClientView client in m_clientThreads.Values) | ||
238 | { | ||
239 | this.SendLayerData(client); | ||
240 | } | ||
234 | } | 241 | } |
235 | 242 | ||
236 | // Primitive backup routines | 243 | // Primitive backup routines -- should only do if there's been a change. |
237 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Backing up Primitives"); | 244 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Backing up Primitives"); |
238 | foreach (libsecondlife.LLUUID UUID in Entities.Keys) | 245 | foreach (libsecondlife.LLUUID UUID in Entities.Keys) |
239 | { | 246 | { |