From b4d6d8ae51658490fd6d0a23b81a0d98c99df925 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 7 Apr 2022 17:31:52 +0200 Subject: [PATCH] fixed graphical bug when player enters exit using ultra-fast speed This fixes the player graphic getting stuck when entering the exit under certain circumstances while using ultra-fast player speed. This bug is described in the following forum topic: https://www.artsoft.org/forum/viewtopic.php?t=3328 --- src/game.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game.c b/src/game.c index 726e60ac..1c33d10b 100644 --- a/src/game.c +++ b/src/game.c @@ -13238,9 +13238,6 @@ void ScrollPlayer(struct PlayerInfo *player, int mode) } } - player->last_jx = jx; - player->last_jy = jy; - if (Tile[jx][jy] == EL_EXIT_OPEN || Tile[jx][jy] == EL_EM_EXIT_OPEN || Tile[jx][jy] == EL_EM_EXIT_OPENING || @@ -13258,6 +13255,9 @@ void ScrollPlayer(struct PlayerInfo *player, int mode) LevelSolved(); } + player->last_jx = jx; + player->last_jy = jy; + // this breaks one level: "machine", level 000 { int move_direction = player->MovDir; -- 2.34.1