projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c1d81a
)
removed duplicated code
author
Holger Schemel
<info@artsoft.org>
Thu, 12 Jan 2023 17:14:20 +0000
(18:14 +0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 12 Jan 2023 17:14:20 +0000
(18:14 +0100)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index 541787c052976539b76023aa02290eacc1f284fd..c5bdd986080f1c13f0882bb0a5175dd06b4e7bf6 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-4269,13
+4269,9
@@
static void DrawPlayerExt(struct PlayerInfo *player, int drawing_stage)
DrawLevelElement(jx, jy, Back[jx][jy]);
else
DrawLevelElement(jx, jy, EL_EMPTY);
-
- if (Back[next_jx][next_jy])
- DrawLevelElement(next_jx, next_jy, Back[next_jx][next_jy]);
- else
- DrawLevelElement(next_jx, next_jy, EL_EMPTY);
}
- else if (Back[next_jx][next_jy])
+
+ if (Back[next_jx][next_jy])
DrawLevelElement(next_jx, next_jy, Back[next_jx][next_jy]);
else
DrawLevelElement(next_jx, next_jy, EL_EMPTY);