diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Common.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Common.cs b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Common.cs index 5715c70..e6e5a9a 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Common.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Common.cs | |||
@@ -74,8 +74,6 @@ namespace libTerrain | |||
74 | 74 | ||
75 | public void Set(int x, int y, double val) | 75 | public void Set(int x, int y, double val) |
76 | { | 76 | { |
77 | SetDiff(x, y); | ||
78 | |||
79 | if (x >= w) | 77 | if (x >= w) |
80 | throw new Exception("Bounds error while setting pixel (width)"); | 78 | throw new Exception("Bounds error while setting pixel (width)"); |
81 | if (y >= h) | 79 | if (y >= h) |
@@ -85,7 +83,12 @@ namespace libTerrain | |||
85 | if (y < 0) | 83 | if (y < 0) |
86 | throw new Exception("Bounds error while setting pixel (height)"); | 84 | throw new Exception("Bounds error while setting pixel (height)"); |
87 | 85 | ||
88 | map[x, y] = val; | 86 | if (map[x, y] != val) |
87 | { | ||
88 | SetDiff(x, y); | ||
89 | |||
90 | map[x, y] = val; | ||
91 | } | ||
89 | } | 92 | } |
90 | 93 | ||
91 | public void SetClip(int x, int y, double val) | 94 | public void SetClip(int x, int y, double val) |