projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19990317-1-src
[rocksndiamonds.git]
/
src
/
game.c
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))
{
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);
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++)
}
for (y=ey-1; y<=ey+1; y++) for(x=ex-1; x<=ex+1; x++)