diff options
author | Nipun Garg | 2019-06-29 02:06:47 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:04 +0200 |
commit | ad2fa4185a8088d2a3eeb24c0138bd259a1b1e4b (patch) | |
tree | 54ef515e56675a3be5228162035648ead8ca0794 /engines/hdb/hdb.cpp | |
parent | 0ede3a249c65bf555f6be9650f63d40c23440581 (diff) | |
download | scummvm-rg350-ad2fa4185a8088d2a3eeb24c0138bd259a1b1e4b.tar.gz scummvm-rg350-ad2fa4185a8088d2a3eeb24c0138bd259a1b1e4b.tar.bz2 scummvm-rg350-ad2fa4185a8088d2a3eeb24c0138bd259a1b1e4b.zip |
HDB: Add pause checks to the Main loop
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r-- | engines/hdb/hdb.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 9e84a36963..76f495649c 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -484,10 +484,10 @@ Common::Error HDBGame::run() { if (_gameState == GAME_PLAY) { _drawMan->drawSky(); - debug(9, "STUB: HDBGame::run: Add check for pause flag"); - - _ai->moveEnts(); - _ai->processCallbackList(); + if (!_pauseFlag) { + _ai->moveEnts(); + _ai->processCallbackList(); + } _map->draw(); _ai->processCines(); @@ -512,6 +512,7 @@ Common::Error HDBGame::run() { _window->drawDialog(); _window->drawInventory(); _window->drawTextOut(); + _window->drawPause(); } // Update Timer that's NOT used for in-game Timing |