From d90022b4d88abac6f8a65b954e27c5952965eca3 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 13 May 2008 17:14:04 +0000 Subject: * Applying Mantis #970 - Revert brush does stupid things. Thanks tglion for fixing a really dumb bug. --- .../Environment/Modules/World/Terrain/PaintBrushes/RevertSphere.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RevertSphere.cs b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RevertSphere.cs index 3deb458..db3fef7 100644 --- a/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RevertSphere.cs +++ b/OpenSim/Region/Environment/Modules/World/Terrain/PaintBrushes/RevertSphere.cs @@ -72,7 +72,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes if (z > 0.0) { z *= duration; - map[x, y] += (map[x, y] * (1.0 - z)) + (m_revertmap[x, y] * z); + map[x, y] = (map[x, y] * (1.0 - z)) + (m_revertmap[x, y] * z); } } } @@ -80,4 +80,4 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.PaintBrushes #endregion } -} \ No newline at end of file +} -- cgit v1.1