From 0ede8140e7e7b93e98283384eec893f77ee69c16 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 27 May 2007 06:13:57 +0000 Subject: * 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. --- OpenSim/OpenSim.RegionServer/world/World.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/OpenSim.RegionServer/world/World.cs') 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 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) { -- cgit v1.1