diff options
author | Adam Frisby | 2007-07-24 05:54:44 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-24 05:54:44 +0000 |
commit | 2760378f7ae9fc9b804b9a4a2936ea7c38e75876 (patch) | |
tree | ab7ff67cde1d44231b2cb32b0e703ad1d7ad3bf5 /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |
parent | * SendLayerData overload including coords now uses patch number rather than c... (diff) | |
download | opensim-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.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
48 | /// <param name="action">The action to be performed</param> | 48 | /// <param name="action">The action to be performed</param> |
49 | /// <param name="north">Distance from the north border where the cursor is located</param> | 49 | /// <param name="north">Distance from the north border where the cursor is located</param> |
50 | /// <param name="west">Distance from the west border where the cursor is located</param> | 50 | /// <param name="west">Distance from the west border where the cursor is located</param> |
51 | public void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west) | 51 | public void ModifyTerrain(float height, float seconds, byte brushsize, byte action, float north, float west, IClientAPI remoteUser) |
52 | { | 52 | { |
53 | // Shiny. | 53 | // Shiny. |
54 | double size = (double)(1 << brushsize); | 54 | double size = (double)(1 << brushsize); |
@@ -92,7 +92,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
92 | break; | 92 | break; |
93 | } | 93 | } |
94 | 94 | ||
95 | RegenerateTerrain(true, (int)(north / 16.0f), (int)(west / 16.0f)); | 95 | remoteUser.SendLayerData((int)(west / 16), (int)(north / 16), Terrain.GetHeights1D()); |
96 | 96 | ||
97 | return; | 97 | return; |
98 | } | 98 | } |