added collecting-based engine snapshot mode to step/move-based modes
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 88434a90dbc64112c2f4b04002fbd5df2572d9b7..7a7c1ac77919bfb0dc60bef1f6cc901e2999715d 100644 (file)
@@ -20,9 +20,13 @@ byte AnimationSubTable[SP_MAX_PLAYFIELD_SIZE];
 void subDoGameStuff()
 {
   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.