Remove more busyloops.

This commit is contained in:
Guus Sliepen 2011-08-24 20:10:21 +02:00
parent bb9ba4da28
commit f46bbcef69
2 changed files with 3 additions and 3 deletions

View File

@ -229,7 +229,7 @@ int mainGameLoop()
while (engine.paused)
{
engine.done = checkPauseRequest();
graphics.updateScreen();
graphics.delayFrame();
}
if ((currentGame.area == 24) && (engine.addAliens > -1))

View File

@ -791,7 +791,7 @@ void missionBriefScreen()
while (true)
{
graphics.updateScreen();
graphics.delayFrame();
getPlayerInput();
if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))
break;
@ -893,7 +893,7 @@ void missionFinishedScreen()
while (true)
{
graphics.updateScreen();
graphics.delayFrame();
getPlayerInput();
if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))
break;