Skip to content

Commit

Permalink
Fixed: The prince was sometimes teleporting to the wrong place.
Browse files Browse the repository at this point in the history
  • Loading branch information
NagyD committed Sep 26, 2021
1 parent 1711556 commit 23b3ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/seg005.c
Expand Up @@ -1141,6 +1141,7 @@ void teleport() {
Char.x = x_bump[Char.curr_col + 5] + 14 + 7; // Center on the destination teleport.
Char.y = y_land[Char.curr_row + 1];
next_room = Char.room;
clear_coll_rooms(); // Without this, the prince will sometimes end up at the wrong place.
leave_guard();
seqtbl_offset_char(seq_5_turn);
play_sound(sound_45_jump_through_mirror);
Expand Down

0 comments on commit 23b3ae7

Please sign in to comment.