rnd-20090729-1-src
[rocksndiamonds.git] / src / game_sp / MainGameLoop.c
index b4a91d006f98a80db10eb77fbad667a2988256c0..6a5e0eafcbde6474bf604a910ee3de4b656531ec 100644 (file)
@@ -35,12 +35,16 @@ int subMainGameLoop()
 
   if (DemoFlag != 0)
   {
+    printf("::: playing demo ...\n");
+
     // EP set level success byte: demo, not game
     WasDemoFlag = 1;
     EP_GameDemoVar0DAA = 0; // demo
   }
   else // loc_g_1836:
   {
+    printf("::: playing game ...\n");
+
     // EP set level success byte: game, not demo
     WasDemoFlag = 0;
     EP_GameDemoVar0DAA = 1; // game
@@ -138,8 +142,12 @@ locRepeatMainGameLoop:                           // start repeating game loop
   // ----------------------------------------------------------------------------
   //
 
+  printf("::: MainGameLoop.c: subDoGameStuff() START\n");
+
   subDoGameStuff();                 // do all game stuff
 
+  printf("::: MainGameLoop.c: subDoGameStuff() END\n");
+
   //
   // ----------------------------------------------------------------------------
 
@@ -249,8 +257,13 @@ int subCalculateScreenScrollPos()
     Ay = MainForm.picPane.Height / 2;
   }
 
+#if 1
+  ScreenScrollXPos = Stretch * (MurphyScreenXPos + 16) - ax;
+  ScreenScrollYPos = Stretch * (MurphyScreenYPos + 16) - Ay;
+#else
   ScreenScrollXPos = Stretch * (MurphyScreenXPos + 8) - ax;
   ScreenScrollYPos = Stretch * (MurphyScreenYPos + 8) - Ay;
+#endif
 
 #if 0
   printf("::: MainGameLoop.c: subCalculateScreenScrollPos(): %d, %d [%d, %d] -> %d, %d\n",