fixed compiler warnings (after adding "-Wstrict-prototypes")
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 88434a90dbc64112c2f4b04002fbd5df2572d9b7..2ba35823a8db9fc16c5b24d9b05d71f797240a50 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.