projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed duplicated code
[rocksndiamonds.git]
/
src
/
tools.c
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);
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);
DrawLevelElement(next_jx, next_jy, Back[next_jx][next_jy]);
else
DrawLevelElement(next_jx, next_jy, EL_EMPTY);