From 5c1d81a8afcb2e409e4d207bbc2cb2853e5e3b49 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 12 Jan 2023 18:08:17 +0100 Subject: [PATCH] moved code for drawing background of push target field to correct location --- src/tools.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools.c b/src/tools.c index 5fb84526..541787c0 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4191,9 +4191,6 @@ static void DrawPlayerExt(struct PlayerInfo *player, int drawing_stage) DrawDynamite(last_jx, last_jy); else DrawLevelField(last_jx, last_jy); - - if (player->is_pushing && IN_SCR_FIELD(SCREENX(next_jx), SCREENY(next_jy))) - DrawLevelElement(next_jx, next_jy, EL_EMPTY); } else if (drawing_stage == DRAW_PLAYER_STAGE_FIELD_UNDER_PLAYER) { @@ -4280,6 +4277,8 @@ static void DrawPlayerExt(struct PlayerInfo *player, int drawing_stage) } else if (Back[next_jx][next_jy]) DrawLevelElement(next_jx, next_jy, Back[next_jx][next_jy]); + else + DrawLevelElement(next_jx, next_jy, EL_EMPTY); int px = SCREENX(jx), py = SCREENY(jy); int pxx = (TILEX - ABS(sxx)) * dx; -- 2.34.1