X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDoGameStuff.c;h=458f8aa653075e9f05c2d0aa4c929ba4201a0ec0;hb=026c569fc47fbe95d8cb131442a4e04610f27f05;hp=baa11022c8085c7120a32a69ecdce7b5fb6dcc15;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/DoGameStuff.c b/src/game_sp/DoGameStuff.c index baa11022..458f8aa6 100644 --- a/src/game_sp/DoGameStuff.c +++ b/src/game_sp/DoGameStuff.c @@ -7,7 +7,8 @@ static void CallAnimation(int si, byte bl); static boolean IsToBeAnimated(int bl); -static char *VB_Name = "modDoGameStuff"; +// static char *VB_Name = "modDoGameStuff"; + // --- Option Explicit int *AnimationPosTable; @@ -24,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: @@ -65,12 +66,21 @@ int subDoGameStuff() } // loop locloop_g_22B8 ' until all animatables done } +#if 0 + printf("::: DoGameStuff.c: KillMurphyFlag == %d [%d]\n", + KillMurphyFlag, MurphyMoveCounter); +#endif + // All animations are done now // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if (KillMurphyFlag == 1 || MurphyMoveCounter == 0) { if (LeadOutCounter == 0) { +#if 0 + printf("::: DoGameStuff.c: killing murphy [%d] ...\n", KillMurphyFlag); +#endif + KillMurphyFlag = 0; // no more "kill Murphy" ExplodeFieldSP(MurphyExplodePos); // Explode LeadOutCounter = 0x40; // quit: start lead-out