Display "PAUSED" when paused.
This commit is contained in:
parent
e7f5c3825b
commit
f8c4a72170
|
@ -228,10 +228,17 @@ int mainGameLoop()
|
||||||
|
|
||||||
wrapChar(&(--engine.eventTimer), 0, 60);
|
wrapChar(&(--engine.eventTimer), 0, 60);
|
||||||
|
|
||||||
while (engine.paused)
|
if (engine.paused)
|
||||||
{
|
{
|
||||||
engine.done = checkPauseRequest();
|
textSurface(22, "PAUSED", -1, 300, FONT_WHITE);
|
||||||
delayFrame();
|
blitText(22);
|
||||||
|
updateScreen();
|
||||||
|
|
||||||
|
while (engine.paused)
|
||||||
|
{
|
||||||
|
engine.done = checkPauseRequest();
|
||||||
|
delayFrame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((currentGame.area == 24) && (engine.addAliens > -1))
|
if ((currentGame.area == 24) && (engine.addAliens > -1))
|
||||||
|
|
Loading…
Reference in New Issue