From f3bccbd6b02fc287064cb12c50a336b7f1e5d03f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 11 May 2018 06:54:32 -0400 Subject: XEEN: Fix animation speed when Control Panel is open --- engines/xeen/dialogs/dialogs_control_panel.cpp | 7 ++++--- 1 file 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: -- cgit v1.2.3