changed comments from old to new style (one-line comments only)
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 88434a90dbc64112c2f4b04002fbd5df2572d9b7..fbea5551834612c87b0b0da70146a652ba7987c8 100644 (file)
@@ -17,12 +17,16 @@ byte AnimationSubTable[SP_MAX_PLAYFIELD_SIZE];
 // Do game stuff
 // ==========================================================================
 
-void subDoGameStuff()
+void subDoGameStuff(void)
 {
   int si, cx, dx, bl;
+  int InfotronsNeeded_last = InfotronsNeeded;
 
   subAnimateMurphy(&MurphyPosIndex);       // move Murphy in any direction
 
+  if (InfotronsNeeded != InfotronsNeeded_last)
+    game.snapshot.collected_item = TRUE;
+
   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   // Build a database of locations and subs-to-call of animatable fields only:
   // Make a snapshot from the field before the animation cycle starts.
@@ -74,7 +78,7 @@ void subDoGameStuff()
       ExplodeFieldSP(MurphyExplodePos);                // Explode
       LeadOutCounter = 0x40;                   // quit: start lead-out
 
-      /* give Murphy some more time (LeadOutCounter) to reach the exit */
+      // give Murphy some more time (LeadOutCounter) to reach the exit
     }
   } //  loc_g_22FB:
 }