rnd-20090729-1-src
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 27aa1c566c563625b2cb670727fc1a649258440a..01d70744f9d61b314cf94ebb0dbda3c8aaad719e 100644 (file)
@@ -25,7 +25,7 @@ int subDoGameStuff()
 
   int si, cx, dx, bl;
 
-  subAnimateMurphy(MurphyPosIndex);       // move Murphy in any direction
+  subAnimateMurphy(&MurphyPosIndex);       // move Murphy in any direction
 
   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   // Build a database of locations and subs-to-call of animatable fields only:
@@ -66,12 +66,21 @@ int subDoGameStuff()
     } // loop    locloop_g_22B8          ' until all animatables done
   }
 
+#if 1
+  printf("::: DoGameStuff.c: KillMurphyFlag == %d [%d]\n",
+        KillMurphyFlag, MurphyMoveCounter);
+#endif
+
   // All animations are done now
   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   if (KillMurphyFlag == 1 || MurphyMoveCounter == 0)
   {
     if (LeadOutCounter == 0)
     {
+#if 1
+      printf("::: DoGameStuff.c: killing murphy [%d] ...\n", KillMurphyFlag);
+#endif
+
       KillMurphyFlag = 0;             // no more "kill Murphy"
       ExplodeFieldSP(MurphyExplodePos);                 // Explode
       LeadOutCounter = 0x40;           // quit: start lead-out