diff options
author | Paul Gilbert | 2017-12-10 18:03:28 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-12-10 18:03:28 -0500 |
commit | 618d256a92c881d580efe27f68febfa7a9471273 (patch) | |
tree | 69ae38718f55ef59e8730c4878496a8a75f6bb7f /engines | |
parent | b1d250e69e7ee3078aaf503ba591095703630aff (diff) | |
download | scummvm-rg350-618d256a92c881d580efe27f68febfa7a9471273.tar.gz scummvm-rg350-618d256a92c881d580efe27f68febfa7a9471273.tar.bz2 scummvm-rg350-618d256a92c881d580efe27f68febfa7a9471273.zip |
XEEN: Fix regression stopping map dialog frame from rendering
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/dialogs_map.cpp | 4 | ||||
-rw-r--r-- | engines/xeen/interface.cpp | 5 | ||||
-rw-r--r-- | engines/xeen/interface.h | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/engines/xeen/dialogs_map.cpp b/engines/xeen/dialogs_map.cpp index 7c7e6f7407..f47f1b69ca 100644 --- a/engines/xeen/dialogs_map.cpp +++ b/engines/xeen/dialogs_map.cpp @@ -81,7 +81,7 @@ void MapDialog::execute() { events.updateGameCounter(); do { if (drawFlag) - intf.draw3d(false); + intf.draw3d(false, false); windows[5].writeString("\r"); if (map._isOutdoors) @@ -109,7 +109,7 @@ void MapDialog::execute() { windows[5].update(); windows[3].update(); - events.pollEvents(); + events.ipause5(2); drawFlag = false; } while (!_vm->shouldQuit() && !events.isKeyMousePressed()); diff --git a/engines/xeen/interface.cpp b/engines/xeen/interface.cpp index f39c2d4278..5bbc6abea1 100644 --- a/engines/xeen/interface.cpp +++ b/engines/xeen/interface.cpp @@ -1242,7 +1242,7 @@ void Interface::bash(const Common::Point &pt, Direction direction) { drawParty(true); } -void Interface::draw3d(bool updateFlag) { +void Interface::draw3d(bool updateFlag, bool pauseFlag) { Combat &combat = *_vm->_combat; EventsManager &events = *_vm->_events; Party &party = *_vm->_party; @@ -1299,7 +1299,8 @@ void Interface::draw3d(bool updateFlag) { } party._stepped = false; - events.ipause5(2); + if (pauseFlag) + events.ipause5(2); } void Interface::handleFalling() { diff --git a/engines/xeen/interface.h b/engines/xeen/interface.h index 54a9cd179e..48d75ab8a0 100644 --- a/engines/xeen/interface.h +++ b/engines/xeen/interface.h @@ -168,8 +168,10 @@ public: /** * Handles drawing the elements of the interface and game scene + * @param updateFlag Updates UI windows 1 & 3 + * @param pauseFlag Does a brief pause at the end of drawing */ - void draw3d(bool updateFlag); + void draw3d(bool updateFlag, bool pauseFlag = true); /** * Draw the display borders |