* 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.

zircon^2
Adam Frisby 2007-05-27 06:13:57 +00:00
parent bd7c1f6d07
commit 0ede8140e7
1 changed files with 8 additions and 1 deletions

View File

@ -231,9 +231,16 @@ namespace OpenSim.world
localStorage.SaveMap(Terrain.getHeights1D());
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain saved, informing Physics.");
phyScene.SetTerrain(Terrain.getHeights1D());
// Needs optimising to just send patches which have changed.
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Terrain changed, informing Clients.");
foreach (ClientView client in m_clientThreads.Values)
{
this.SendLayerData(client);
}
}
// Primitive backup routines
// Primitive backup routines -- should only do if there's been a change.
OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.LOW, "World.cs: Backup() - Backing up Primitives");
foreach (libsecondlife.LLUUID UUID in Entities.Keys)
{