mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
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:
commit
a53cf1ff2c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user