From f8c4a72170e9405a47a5bd86bd7c4c20500e713f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 5 Sep 2011 11:40:35 +0200 Subject: [PATCH] Display "PAUSED" when paused. --- code/game.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/code/game.cpp b/code/game.cpp index 77c1471..4387ff5 100644 --- a/code/game.cpp +++ b/code/game.cpp @@ -228,10 +228,17 @@ int mainGameLoop() wrapChar(&(--engine.eventTimer), 0, 60); - while (engine.paused) + if (engine.paused) { - engine.done = checkPauseRequest(); - delayFrame(); + textSurface(22, "PAUSED", -1, 300, FONT_WHITE); + blitText(22); + updateScreen(); + + while (engine.paused) + { + engine.done = checkPauseRequest(); + delayFrame(); + } } if ((currentGame.area == 24) && (engine.addAliens > -1))