diff options
author | Paul Gilbert | 2018-05-11 06:54:32 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-05-11 06:54:32 -0400 |
commit | f3bccbd6b02fc287064cb12c50a336b7f1e5d03f (patch) | |
tree | 0c614804c8bbfe061e576d1e8821f8474f08db59 | |
parent | 5cc607f32912327e877756bff2ee147f09771caf (diff) | |
download | scummvm-rg350-f3bccbd6b02fc287064cb12c50a336b7f1e5d03f.tar.gz scummvm-rg350-f3bccbd6b02fc287064cb12c50a336b7f1e5d03f.tar.bz2 scummvm-rg350-f3bccbd6b02fc287064cb12c50a336b7f1e5d03f.zip |
XEEN: Fix animation speed when Control Panel is open
-rw-r--r-- | engines/xeen/dialogs/dialogs_control_panel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/xeen/dialogs/dialogs_control_panel.cpp b/engines/xeen/dialogs/dialogs_control_panel.cpp index f589c8b0c3..80d1715ff7 100644 --- a/engines/xeen/dialogs/dialogs_control_panel.cpp +++ b/engines/xeen/dialogs/dialogs_control_panel.cpp @@ -61,9 +61,10 @@ int ControlPanel::execute() { w.writeString("\xB""000\t000\x1"); w.update(); + events.updateGameCounter(); + intf.draw3d(false, false); + do { - events.updateGameCounter(); - intf.draw3d(false, false); w.writeString("\r"); drawButtons(&w); w.writeString(text); @@ -80,7 +81,7 @@ int ControlPanel::execute() { checkEvents(_vm); if (_vm->shouldExit()) return 0; - } while (!_buttonValue && !events.timeElapsed()); + } while (!_buttonValue && events.timeElapsed() < 2); switch (_buttonValue) { case Common::KEYCODE_q: |