Merge branch 'fix-8-rot-furni-being-walkable' into 'ms4/dev'

Fix for being able to walk on furniture that has 8 rotations #1727

See merge request morningstar/Arcturus-Community!52
This commit is contained in:
John 2023-01-23 21:47:21 +00:00
commit a53cf1ff2c

View File

@ -612,6 +612,11 @@ public class RoomLayout {
}
}
}
} else if (rotation == 1 || rotation == 3 || rotation == 5 || rotation == 7) {
RoomTile t = this.getTile(tile.getX(), tile.getY());
if (t == null || t.getState() == RoomTileState.INVALID) {
return false;
}
}
}
@ -642,9 +647,13 @@ public class RoomLayout {
}
}
}
} else if (rotation == 1 || rotation == 3 || rotation == 5 || rotation == 7) {
RoomTile t = this.getTile(tile.getX(), tile.getY());
if (t != null) {
pointList.add(t);
}
}
}
return pointList;
}
}