projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed decrementing counter for kettles (removed by accident) (MM engine)
[rocksndiamonds.git]
/
src
/
game_mm
/
mm_game.c
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 6113871750944202623ddd6f6228c0941187c0c8..0cb2e094f9ebe6c7f6e727af5e70d03ead65bf11 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-1191,6
+1191,9
@@
boolean HitElement(int element, int hit_mask)
if (element == EL_KETTLE || element == EL_CELL)
{
if (element == EL_KETTLE || element == EL_CELL)
{
+ if (game_mm.kettles_still_needed > 0)
+ game_mm.kettles_still_needed--;
+
RaiseScore_MM(10);
if (game_mm.kettles_still_needed == 0)
RaiseScore_MM(10);
if (game_mm.kettles_still_needed == 0)
@@
-2163,7
+2166,7
@@
static void Explode_MM(int x, int y, int phase, int mode)
graphic_phase += 4;
else
{
graphic_phase += 4;
else
{
- graphic =
GFX
_EMPTY;
+ graphic =
IMG
_EMPTY;
graphic_phase = 0;
}
}
graphic_phase = 0;
}
}