From 935e67a783b2fbfb11b7705ba06289f637fd6143 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 12 Mar 2008 11:47:34 +0000 Subject: * Updated Terrain Module * Terrain Area-of-Effect brushes now should work properly. * Updated the scale / effect of various brushes. Small & Medium brushes should now actually do something. --- OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs index 507bcf4..639257c 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainModule.cs @@ -392,7 +392,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain if (m_painteffects.ContainsKey((StandardTerrainEffects)action)) { m_painteffects[(StandardTerrainEffects)action].PaintEffect( - m_channel, west, south, Math.Pow(size, 2.0), seconds); + m_channel, west, south, size, seconds); bool usingTerrainModule = true; @@ -421,7 +421,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain { if (x < east && x > west) { - if (y < south && y > north) + if (y < north && y > south) { fillArea[x, y] = true; } @@ -430,7 +430,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain } m_floodeffects[(StandardTerrainEffects)action].FloodEffect( - m_channel, fillArea, Math.Pow(size, 2.0)); + m_channel, fillArea, size); bool usingTerrainModule = true; if (usingTerrainModule) -- cgit v1.1