From 23b3ae7603bf142fce5e2c8c32182fa606e6e12d Mon Sep 17 00:00:00 2001 From: NagyD Date: Sun, 26 Sep 2021 18:09:35 +0200 Subject: [PATCH] Fixed: The prince was sometimes teleporting to the wrong place. Video: https://forum.princed.org/viewtopic.php?p=33671#p33671 --- src/seg005.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/seg005.c b/src/seg005.c index 56cfcee0..b5e73698 100644 --- a/src/seg005.c +++ b/src/seg005.c @@ -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);