projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20050918-1-src
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index b0d7ec6bfd1a670820bce99d0111fd67b8c7db58..56768b1b9951830e66ea7d380d45b91cf333a89d 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-58,6
+58,8
@@
#define USE_CHANGE_TO_TRIGGERED (TRUE * USE_NEW_STUFF * 1)
#define USE_CHANGE_TO_TRIGGERED (TRUE * USE_NEW_STUFF * 1)
+#define USE_BACK_WALKABLE_BUGFIX (TRUE * USE_NEW_STUFF * 1)
+
/* for DigField() */
#define DF_NO_PUSH 0
/* for DigField() */
#define DF_NO_PUSH 0
@@
-11460,6
+11462,13
@@
int DigField(struct PlayerInfo *player,
if (IS_TUBE(Back[jx][jy]) && game.engine_version >= VERSION_IDENT(2,2,0,0))
old_element = Back[jx][jy];
if (IS_TUBE(Back[jx][jy]) && game.engine_version >= VERSION_IDENT(2,2,0,0))
old_element = Back[jx][jy];
+#if USE_BACK_WALKABLE_BUGFIX
+
+ /* in case of element dropped at player position, check background */
+ else if (Back[jx][jy] != EL_EMPTY &&
+ game.engine_version >= VERSION_IDENT(2,2,0,0))
+ old_element = Back[jx][jy];
+#endif
#endif
#endif