From 2760378f7ae9fc9b804b9a4a2936ea7c38e75876 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 24 Jul 2007 05:54:44 +0000 Subject: * Users doing terraforming should see updates instantly now. * Other viewers in the sim will see updates no more than once every 5 seconds. --- OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 571cead..b5faad5 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs @@ -48,7 +48,7 @@ namespace OpenSim.Region.Environment.Scenes /// The action to be performed /// Distance from the north border where the cursor is located /// Distance from the west border where the cursor is located - public void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west) + public void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west, IClientAPI remoteUser) { // Shiny. double size = (double)(1 << brushsize); @@ -92,7 +92,7 @@ namespace OpenSim.Region.Environment.Scenes break; } - RegenerateTerrain(true, (int)(north / 16.0f), (int)(west / 16.0f)); + remoteUser.SendLayerData((int)(west / 16), (int)(north / 16), Terrain.GetHeights1D()); return; } -- cgit v1.1