Super quick fix for mazes being broken.

This commit is contained in:
UnknownShadow200 2016-03-22 11:26:05 +11:00
parent f983d09a7c
commit a0c241f487

View File

@ -154,16 +154,13 @@ namespace MCGalaxy.Drawing.Ops {
} }
bool IsWall(int x, int y) { bool IsWall(int x, int y) {
if (x < 0 || y < 0 || x >= width || y >= length) return false; if (x < 0 || y < 0 || x > width || y > length) return false;
return wall[x, y]; return wall[x, y];
} }
struct GridNode { struct GridNode {
public ushort X, Y; public ushort X, Y;
public GridNode(ushort x, ushort y) { X = x; Y = y; }
public GridNode(ushort x, ushort y) {
X = x; Y = y;
}
} }
} }
} }