* Several functions should now be more efficient with sending packets to the client (at the expense of some server CPU while editing)

afrisby
Adam Frisby 2007-07-24 06:01:11 +00:00
parent 2760378f7a
commit aa704172d1
1 changed files with 6 additions and 3 deletions

View File

@ -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)