From f0446cb16487da6f371a731810905ad117109136 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sun, 22 Jun 2014 11:30:55 -0700 Subject: [PATCH] Guards don't contact the player anymore and people continue chasing the guards --- moonlight/src/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/src/Util.js b/moonlight/src/Util.js index 40efb63..151ad96 100644 --- a/moonlight/src/Util.js +++ b/moonlight/src/Util.js @@ -83,7 +83,7 @@ function nearestWalkableTile(spr) (y == starty) || (y == endy) ) { console.log(pathfinder_grid); - if ( pathfinder_grid.nodes[x][y].walkable == true ) { + if ( pathfinder_grid.nodes[y][x].walkable == true ) { console.log([x, y]); return [x, y]; }