diff --git a/src/game/rooms.js b/src/game/rooms.js index cff0dd22..afed3da2 100644 --- a/src/game/rooms.js +++ b/src/game/rooms.js @@ -248,6 +248,9 @@ function _findPath2(id, fromPos, toPos, opts) { if(resultMatrix instanceof globals.PathFinder.CostMatrix) { costMatrix = resultMatrix; } + else if(resultMatrix === false) { + return false; + } } return costMatrix; },