From a0c241f48715c1dd97c15d55c4123981c49ba0ba Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 22 Mar 2016 11:26:05 +1100 Subject: [PATCH] Super quick fix for mazes being broken. --- Drawing/DrawOps/MazeDrawOp.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Drawing/DrawOps/MazeDrawOp.cs b/Drawing/DrawOps/MazeDrawOp.cs index b40f2cc76..7640fabb9 100644 --- a/Drawing/DrawOps/MazeDrawOp.cs +++ b/Drawing/DrawOps/MazeDrawOp.cs @@ -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; } } } }