projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a424879
)
moved code for drawing background of push target field to correct location
author
Holger Schemel
<info@artsoft.org>
Thu, 12 Jan 2023 17:08:17 +0000
(18:08 +0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 12 Jan 2023 17:08:17 +0000
(18:08 +0100)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index 5fb84526d33c99386810b2fb5ebe1cfee6006b19..541787c052976539b76023aa02290eacc1f284fd 100644
(file)
--- 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);
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)
{
}
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 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;
int px = SCREENX(jx), py = SCREENY(jy);
int pxx = (TILEX - ABS(sxx)) * dx;