mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* Several functions should now be more efficient with sending packets to the client (at the expense of some server CPU while editing)
This commit is contained in:
@@ -74,8 +74,6 @@ namespace libTerrain
|
||||
|
||||
public void Set(int x, int y, double val)
|
||||
{
|
||||
SetDiff(x, y);
|
||||
|
||||
if (x >= w)
|
||||
throw new Exception("Bounds error while setting pixel (width)");
|
||||
if (y >= h)
|
||||
@@ -85,7 +83,12 @@ namespace libTerrain
|
||||
if (y < 0)
|
||||
throw new Exception("Bounds error while setting pixel (height)");
|
||||
|
||||
map[x, y] = val;
|
||||
if (map[x, y] != val)
|
||||
{
|
||||
SetDiff(x, y);
|
||||
|
||||
map[x, y] = val;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetClip(int x, int y, double val)
|
||||
|
||||
Reference in New Issue
Block a user