Skip to content

Commit

Permalink
Fix the earlier fix for a guard standing on a door top.
Browse files Browse the repository at this point in the history
  • Loading branch information
NagyD committed Jul 17, 2020
1 parent 135d963 commit 0de6aee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/seg003.c
Expand Up @@ -644,14 +644,13 @@ Possible results in can_guard_see_kid:
left_pos += 14;
}
// A gate is on the right side of a tile, so it doesn't count.
if (get_tile_at_kid(right_pos) == tiles_4_gate) {
right_pos -= 14;
}
if (get_tile_at_kid(right_pos) == tiles_4_gate
#ifdef FIX_DOORTOP_DISABLING_GUARD
if (get_tile_at_kid(right_pos) == tiles_7_doortop_with_floor || get_tile_at_kid(right_pos) == tiles_12_doortop) {
|| get_tile_at_kid(right_pos) == tiles_7_doortop_with_floor || get_tile_at_kid(right_pos) == tiles_12_doortop
#endif
) {
right_pos -= 14;
}
#endif
if (right_pos >= left_pos) {
while (left_pos <= right_pos) {
// Can't see through these tiles.
Expand Down

0 comments on commit 0de6aee

Please sign in to comment.