Display "PAUSED" when paused.

This commit is contained in:
Guus Sliepen 2011-09-05 11:40:35 +02:00
parent e7f5c3825b
commit f8c4a72170
1 changed files with 10 additions and 3 deletions

View File

@ -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))