diff options
author | Dahlia Trimble | 2009-06-18 23:02:12 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-06-18 23:02:12 +0000 |
commit | 00d042f3d18483a5ca54c605d2aa22c6c330e9eb (patch) | |
tree | b9e1522a3b3abf1aa77942d4d2f762d43a16146e /OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | |
parent | Applied patch from Mantis #3817, which fixes a error when using MSSQL. I don'... (diff) | |
download | opensim-SC_OLD-00d042f3d18483a5ca54c605d2aa22c6c330e9eb.zip opensim-SC_OLD-00d042f3d18483a5ca54c605d2aa22c6c330e9eb.tar.gz opensim-SC_OLD-00d042f3d18483a5ca54c605d2aa22c6c330e9eb.tar.bz2 opensim-SC_OLD-00d042f3d18483a5ca54c605d2aa22c6c330e9eb.tar.xz |
Thanks Michelle Argus for Mantis #0003742: Terrain editor - Flatten tool lowers Land
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> |