From 8e27656fcc0331c8521e4ef8e8ece4495f1f32ae Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 12 Mar 2008 11:02:30 +0000 Subject: * Refactored some terrain brushes to move out some common functions into TerrainUtil class. More needs doing. * Adjusted strength of brushes to Math.Pow(2,size), this should in theory work closer to how it was before. --- .../Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs') diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs index 0e98111..180f37e 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/FlattenSphere.cs @@ -74,6 +74,8 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration) { + strength = TerrainUtil.MetersToSphericalStrength(strength); + int x, y; double[,] tweak = new double[map.Width, map.Height]; -- cgit v1.1