projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f58d4b
)
rnd-19990317-1-src
author
Holger Schemel
<info@artsoft.org>
Tue, 16 Mar 1999 23:17:21 +0000
(
00:17
+0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 30 Aug 2014 08:33:59 +0000
(10:33 +0200)
src/Makefile
patch
|
blob
|
history
src/game.c
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index fb7dd26ac40e84ae95e8ce7ea723e86f58d29090..6c81021d1d52593d85be593b34749ec419741788 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-59,7
+59,7
@@
PROGNAME = ../rocksndiamonds
LIBS = -L$(XLIB_PATH) $(EXTRA_X11_LIBS) -lX11 -lm $(EXTRA_LIBS)
else
RM = del
-PROGNAME = ..
\
rocks.exe
+PROGNAME = ..
/
rocks.exe
LIBS = -lm -lalleg
endif
diff --git
a/src/game.c
b/src/game.c
index 2cabfe2ff3771655b295b2bccdb4b971e2a0f596..d4860369384bee8c3a33cf2f685e70d89d1429c4 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-1114,8
+1114,10
@@
void Explode(int ex, int ey, int phase, int mode)
if (IS_MOVING(ex, ey) || IS_BLOCKED(ex, ey))
{
+ /* put moving element to center field (and let it explode there) */
center_element = MovingOrBlocked2Element(ex, ey);
RemoveMovingField(ex, ey);
+ Feld[ex][ey] = center_element;
}
for (y=ey-1; y<=ey+1; y++) for(x=ex-1; x<=ex+1; x++)