diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs index 08b1830..4d01f22 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | |||
@@ -299,7 +299,10 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
299 | /// <param name="agentId">UUID of script-owner</param> | 299 | /// <param name="agentId">UUID of script-owner</param> |
300 | public void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action, UUID agentId) | 300 | public void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action, UUID agentId) |
301 | { | 301 | { |
302 | client_OnModifyTerrain(user, (float)pos.Z, (float)0.25, size, action, pos.Y, pos.X, pos.Y, pos.X, agentId); | 302 | float duration = 0.25f; |
303 | if (action == 0) | ||
304 | duration = 4.0f; | ||
305 | client_OnModifyTerrain(user, (float)pos.Z, duration, size, action, pos.Y, pos.X, pos.Y, pos.X, agentId); | ||
303 | } | 306 | } |
304 | 307 | ||
305 | /// <summary> | 308 | /// <summary> |