mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-29 16:43:30 -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) {
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user