mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-26 14:54:12 -04:00
Super quick fix for mazes being broken.
This commit is contained in:
parent
f983d09a7c
commit
a0c241f487
@ -154,16 +154,13 @@ namespace MCGalaxy.Drawing.Ops {
|
||||
}
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
struct GridNode {
|
||||
public ushort X, Y;
|
||||
|
||||
public GridNode(ushort x, ushort y) {
|
||||
X = x; Y = y;
|
||||
}
|
||||
public ushort X, Y;
|
||||
public GridNode(ushort x, ushort y) { X = x; Y = y; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user