Skip to content

Commit 919b3b3

Browse files
committed
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 bf041c1 commit 919b3b3

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
@@ -1038,9 +1038,8 @@ bool Game_Map::IsPassableTile(
10381038
continue;
10391039
}
10401040
if (ev.IsInPosition(x, y) && ev.GetLayer() == lcf::rpg::EventPage::Layers_below) {
1041-
int tile_id = ev.GetTileId();
1042-
if (tile_id > 0) {
1043-
event_tile_id = tile_id;
1041+
if (ev.HasTileSprite()) {
1042+
event_tile_id = ev.GetTileId();
10441043
}
10451044
}
10461045
}

0 commit comments

Comments
 (0)