From: Holger Schemel Date: Thu, 12 Jan 2023 17:08:17 +0000 (+0100) Subject: moved code for drawing background of push target field to correct location X-Git-Tag: 4.3.5.0~41 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5c1d81a8afcb2e409e4d207bbc2cb2853e5e3b49;p=rocksndiamonds.git moved code for drawing background of push target field to correct location --- 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;