diff options
author | Paul Gilbert | 2018-03-29 22:41:02 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-29 22:41:02 -0400 |
commit | 2bd81bac81cfa7ef222412525858ff85941e1063 (patch) | |
tree | 23fa5f0c7c794b6c23fce797eef1b6b82adf88bf | |
parent | 60fdd3d5f2918c2b48e8f3143020d0f770f47dea (diff) | |
download | scummvm-rg350-2bd81bac81cfa7ef222412525858ff85941e1063.tar.gz scummvm-rg350-2bd81bac81cfa7ef222412525858ff85941e1063.tar.bz2 scummvm-rg350-2bd81bac81cfa7ef222412525858ff85941e1063.zip |
XEEN: Improvements for trip to Rivercity
This slightly slows down movement to more closely match the original,
and stops a turn pass from occurring when Rivercity is reached
-rw-r--r-- | engines/xeen/dialogs/dialogs_input.cpp | 1 | ||||
-rw-r--r-- | engines/xeen/scripts.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/xeen/dialogs/dialogs_input.cpp b/engines/xeen/dialogs/dialogs_input.cpp index c2dac524c0..0ac8f3612b 100644 --- a/engines/xeen/dialogs/dialogs_input.cpp +++ b/engines/xeen/dialogs/dialogs_input.cpp @@ -69,7 +69,6 @@ int Input::getString(Common::String &line, uint maxLen, int maxWidth, bool isNum } } - _vm->_interface->clearEvents(); _vm->_noDirectionSense = false; return line.size(); } diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 2ffdcd1f72..d135a4ae11 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -238,6 +238,8 @@ int Scripts::checkEvents() { _vm->_mode = oldMode; windows.closeAll(); + if (_scriptExecuted) + intf.clearEvents(); if (_scriptExecuted || !intf._objNumber || _dirFlag) { if (_dirFlag && !_scriptExecuted && intf._objNumber && !map._currentIsEvent) { sound.playFX(21); @@ -522,7 +524,7 @@ bool Scripts::cmdTeleport(ParamsIterator ¶ms) { if (restartFlag) { // Draw the new location and start any script at that location - intf.draw3d(true); + events.ipause(2); _lineNum = SCRIPT_RESET; return false; } else { |