Skip to content

Commit 2425f7f

Browse files
GhabryDesdaemon
authored andcommitted
When doing passability checks always the first event with a tile graphic is considered.
We skipped tile_id = 0 before which broke a collision check in "Genkido". Fix #3366
1 parent ce55ec9 commit 2425f7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/game_map.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,9 +1056,8 @@ bool Game_Map::IsPassableTile(
10561056
continue;
10571057
}
10581058
if (ev.IsInPosition(x, y) && ev.GetLayer() == lcf::rpg::EventPage::Layers_below) {
1059-
int tile_id = ev.GetTileId();
1060-
if (tile_id > 0) {
1061-
event_tile_id = tile_id;
1059+
if (ev.HasTileSprite()) {
1060+
event_tile_id = ev.GetTileId();
10621061
}
10631062
}
10641063
}

0 commit comments

Comments
 (0)