aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-07-24 06:01:11 +0000
committerAdam Frisby2007-07-24 06:01:11 +0000
commitaa704172d17633c690f619258abeb55384425c64 (patch)
tree539c70f71159b703a7fec416b2ddd14bd0244188
parent* Users doing terraforming should see updates instantly now. (diff)
downloadopensim-SC_OLD-aa704172d17633c690f619258abeb55384425c64.zip
opensim-SC_OLD-aa704172d17633c690f619258abeb55384425c64.tar.gz
opensim-SC_OLD-aa704172d17633c690f619258abeb55384425c64.tar.bz2
opensim-SC_OLD-aa704172d17633c690f619258abeb55384425c64.tar.xz
* Several functions should now be more efficient with sending packets to the client (at the expense of some server CPU while editing)
-rw-r--r--OpenSim/Region/Terrain.BasicTerrain/libTerrainBSD/Channel/Common.cs9
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)