Remove more busyloops.
This commit is contained in:
parent
bb9ba4da28
commit
f46bbcef69
|
@ -229,7 +229,7 @@ int mainGameLoop()
|
||||||
while (engine.paused)
|
while (engine.paused)
|
||||||
{
|
{
|
||||||
engine.done = checkPauseRequest();
|
engine.done = checkPauseRequest();
|
||||||
graphics.updateScreen();
|
graphics.delayFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((currentGame.area == 24) && (engine.addAliens > -1))
|
if ((currentGame.area == 24) && (engine.addAliens > -1))
|
||||||
|
|
|
@ -791,7 +791,7 @@ void missionBriefScreen()
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
graphics.updateScreen();
|
graphics.delayFrame();
|
||||||
getPlayerInput();
|
getPlayerInput();
|
||||||
if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))
|
if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))
|
||||||
break;
|
break;
|
||||||
|
@ -893,7 +893,7 @@ void missionFinishedScreen()
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
graphics.updateScreen();
|
graphics.delayFrame();
|
||||||
getPlayerInput();
|
getPlayerInput();
|
||||||
if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))
|
if ((engine.keyState[SDLK_LCTRL]) || (engine.keyState[SDLK_RCTRL]))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue