fixed decrementing counter for kettles (removed by accident) (MM engine)
authorHolger Schemel <info@artsoft.org>
Wed, 22 Feb 2017 18:42:18 +0000 (19:42 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:09 +0000 (23:21 +0100)
src/game_mm/mm_game.c

index 22d2065b5bc904a5a5c02d37fd30372c095e2bca..0cb2e094f9ebe6c7f6e727af5e70d03ead65bf11 100644 (file)
@@ -1191,6 +1191,9 @@ boolean HitElement(int element, int hit_mask)
 
     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)