rnd-20050115-1-src
[rocksndiamonds.git] / src / screens.c
index 212a75caac20e87836812bfa27d45410d58d0b2c..3d7cdf9d7873b28e4401b1581d52e474e10ab936 100644 (file)
@@ -2967,7 +2967,14 @@ void HandleGameActions()
     /* --- game actions --- */
 
     if (tape.pausing)
+    {
+      /* don't use 100% CPU while in pause mode -- this should better be solved
+        like in the R'n'D game engine! */
+
+      Delay(10);
+
       return;
+    }
 
     recorded_player_action = (tape.playing ? TapePlayAction() : NULL);
 
@@ -3010,6 +3017,7 @@ void HandleGameActions()
        DrawVideoDisplay(VIDEO_STATE_TIME_ON, TapeTime);
     }
 
+    FrameCounter++;
     TimeFrames++;
 
     BackToFront();