Changes to RoomLayout, makes more sense.

This commit is contained in:
KrewsOrg 2020-04-03 16:58:02 +01:00
parent 357f735d5a
commit 1ea86cb528

View File

@ -318,8 +318,8 @@ public class RoomLayout {
}
}
if (!this.room.isAllowWalkthrough() && !isWalktroughRetry) {
return this.findPath(oldTile, newTile, goalLocation, roomUnit, false);
if (this.room.isAllowWalkthrough() && isWalktroughRetry) {
return this.findPath(oldTile, newTile, goalLocation, roomUnit, true);
}
return null;