boolean bPlaying;
-int LeadOutCounter, EnterRepeatCounter;
+int LeadOutCounter;
int ExitToMenuFlag;
boolean AutoScrollFlag;
TimerVar = TimerVar + 1;
+#if 1
+ if (ExplosionShakeMurphy > 0)
+ ExplosionShakeMurphy--;
+#endif
+
#if 1
if (ExitToMenuFlag == 1)
{
locExitMainGameLoop:
#endif
-#if 1
+#if 0
printf("::: locExitMainGameLoop reached [%d]\n", LeadOutCounter);
printf("::: [KillMurphyFlag == %d]\n", KillMurphyFlag);
#endif
void subCalculateScreenScrollPos()
{
- int ax, Ay;
-
#if 1
int jump_pos = TILEX / 2;
+ /* handle wrap-around */
if (MurphyScreenXPos < -jump_pos)
{
MurphyScreenXPos = FieldWidth * TILEX + MurphyScreenXPos;
// printf("::: ExplosionShake [%d]\n", FrameCounter);
}
- {
- ax = SXSIZE / 2;
- Ay = SYSIZE / 2;
- }
-
- ScreenScrollXPos = Stretch * (MurphyScreenXPos + TILEX / 2) - ax;
- ScreenScrollYPos = Stretch * (MurphyScreenYPos + TILEY / 2) - Ay;
+ ScreenScrollXPos = MurphyScreenXPos - (SCR_FIELDX / 2) * TILESIZE;
+ ScreenScrollYPos = MurphyScreenYPos - (SCR_FIELDY / 2) * TILESIZE;
}