projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5caf028
)
rnd-19990315-2-src
author
Holger Schemel
<info@artsoft.org>
Mon, 15 Mar 1999 01:25:01 +0000
(
02:25
+0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 30 Aug 2014 08:33:58 +0000
(10:33 +0200)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 89ed530fcf9ba4d2cc551348dbe359bda6d7f121..2cabfe2ff3771655b295b2bccdb4b971e2a0f596 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-1118,9
+1118,16
@@
void Explode(int ex, int ey, int phase, int mode)
RemoveMovingField(ex, ey);
}
RemoveMovingField(ex, ey);
}
- for (y=ey-1; y<
ey+2; y++) for(x=ex-1; x<ex+2
; x++)
+ for (y=ey-1; y<
=ey+1; y++) for(x=ex-1; x<=ex+1
; x++)
{
{
- int element = Feld[x][y];
+ int element;
+
+ if (!IN_LEV_FIELD(x, y) ||
+ ((mode != EX_NORMAL || center_element == EL_AMOEBA2DIAM) &&
+ (x != ex || y != ey)))
+ continue;
+
+ element = Feld[x][y];
if (IS_MOVING(x, y) || IS_BLOCKED(x, y))
{
if (IS_MOVING(x, y) || IS_BLOCKED(x, y))
{
@@
-1128,11
+1135,7
@@
void Explode(int ex, int ey, int phase, int mode)
RemoveMovingField(x, y);
}
RemoveMovingField(x, y);
}
- if (!IN_LEV_FIELD(x, y) || IS_MASSIVE(element) || element == EL_BURNING)
- continue;
-
- if ((mode != EX_NORMAL || center_element == EL_AMOEBA2DIAM) &&
- (x != ex || y != ey))
+ if (IS_MASSIVE(element) || element == EL_BURNING)
continue;
if (element == EL_EXPLODING)
continue;
if (element == EL_EXPLODING)