diff --git a/rc.c b/rc.c index f600035..00f30f4 100644 --- a/rc.c +++ b/rc.c @@ -952,7 +952,9 @@ int main (int argc, char **argv) { void tick(void) { sprite_t *s; - SDL_framerateDelay(&manager); + if (!paused) { + SDL_framerateDelay(&manager); + } if (paused) return; @@ -5263,7 +5265,9 @@ void drawlevel(void) { // update screen //SDL_GL_SwapBuffers(); SDL_UpdateRect(screen, 0,0,640,480); - SDL_framerateDelay(&manager); + if (!paused) { + SDL_framerateDelay(&manager); + } // remove players if (curlevelnum != INTRO_LEVELNUM) { @@ -5362,7 +5366,7 @@ void drawlevel(void) { // update screen //SDL_GL_SwapBuffers(); SDL_UpdateRect(screen, 0,0,640,480); - SDL_framerateDelay(&manager); + if (!paused) SDL_framerateDelay(&manager); // remove players if (curlevelnum != INTRO_LEVELNUM) { @@ -5460,7 +5464,7 @@ void drawlevel(void) { // update screen //SDL_GL_SwapBuffers(); SDL_UpdateRect(screen, 0,0,640,480); - SDL_framerateDelay(&manager); + if (!paused) SDL_framerateDelay(&manager); // remove players @@ -5559,7 +5563,7 @@ void drawlevel(void) { // update screen //SDL_GL_SwapBuffers(); SDL_UpdateRect(screen, 0,0,640,480); - SDL_framerateDelay(&manager); + if (!paused) SDL_framerateDelay(&manager); // remove players if (curlevelnum != INTRO_LEVELNUM) { @@ -8921,8 +8925,10 @@ void togglefullscreen(void) { // redraw background SDL_BlitSurface(temps, NULL, screen, NULL); - /* redo framerate manager */ - SDL_setFramerate(&manager, WANTFPS); + if (!paused) { + /* redo framerate manager */ + SDL_setFramerate(&manager, WANTFPS); + } } void initsdl(void) { @@ -11543,7 +11549,7 @@ void checkhiscores(sprite_t *who){ } } - SDL_framerateDelay(&manager); + if (!paused) SDL_framerateDelay(&manager); SDL_UpdateRect(screen, 0,0,640,480); }