diff options
author | Jeff Ames | 2008-02-26 15:36:17 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-26 15:36:17 +0000 |
commit | 74940c7b1dbd44dc236b6b1bf6a7d03ce8e6ea43 (patch) | |
tree | 219db5a8e80858c28ee7c2a4173ffe71fd93d382 /OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs | |
parent | * Hooked up replacment TerrainModule, raising land will now be weird as both ... (diff) | |
download | opensim-SC-74940c7b1dbd44dc236b6b1bf6a7d03ce8e6ea43.zip opensim-SC-74940c7b1dbd44dc236b6b1bf6a7d03ce8e6ea43.tar.gz opensim-SC-74940c7b1dbd44dc236b6b1bf6a7d03ce8e6ea43.tar.bz2 opensim-SC-74940c7b1dbd44dc236b6b1bf6a7d03ce8e6ea43.tar.xz |
Update svn properties.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs b/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs index ce83a4c..8fd957b 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/FloodBrushes/RaiseArea.cs | |||
@@ -1,30 +1,30 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim.Region.Environment.Modules.Terrain; | 4 | using OpenSim.Region.Environment.Modules.Terrain; |
5 | using OpenSim.Region.Environment.Interfaces; | 5 | using OpenSim.Region.Environment.Interfaces; |
6 | 6 | ||
7 | namespace OpenSim.Region.Environment.Modules.Terrain.FloodBrushes | 7 | namespace OpenSim.Region.Environment.Modules.Terrain.FloodBrushes |
8 | { | 8 | { |
9 | class RaiseArea : ITerrainFloodEffect | 9 | class RaiseArea : ITerrainFloodEffect |
10 | { | 10 | { |
11 | #region ITerrainFloodEffect Members | 11 | #region ITerrainFloodEffect Members |
12 | 12 | ||
13 | public void FloodEffect(ITerrainChannel map, bool[,] fillArea, double strength) | 13 | public void FloodEffect(ITerrainChannel map, bool[,] fillArea, double strength) |
14 | { | 14 | { |
15 | int x, y; | 15 | int x, y; |
16 | for (x = 0; x < map.Width; x++) | 16 | for (x = 0; x < map.Width; x++) |
17 | { | 17 | { |
18 | for (y = 0; y < map.Height; y++) | 18 | for (y = 0; y < map.Height; y++) |
19 | { | 19 | { |
20 | if (fillArea[x, y] == true) | 20 | if (fillArea[x, y] == true) |
21 | { | 21 | { |
22 | map[x, y] += strength; | 22 | map[x, y] += strength; |
23 | } | 23 | } |
24 | } | 24 | } |
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||
28 | #endregion | 28 | #endregion |
29 | } | 29 | } |
30 | } | 30 | } |