From: Holger Schemel Date: Thu, 7 Apr 2022 15:31:52 +0000 (+0200) Subject: fixed graphical bug when player enters exit using ultra-fast speed X-Git-Tag: 4.3.2.0~33 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b4d6d8ae51658490fd6d0a23b81a0d98c99df925;p=rocksndiamonds.git 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 --- 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;