aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/scripts.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-29 22:41:02 -0400
committerPaul Gilbert2018-03-29 22:41:02 -0400
commit2bd81bac81cfa7ef222412525858ff85941e1063 (patch)
tree23fa5f0c7c794b6c23fce797eef1b6b82adf88bf /engines/xeen/scripts.cpp
parent60fdd3d5f2918c2b48e8f3143020d0f770f47dea (diff)
downloadscummvm-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
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r--engines/xeen/scripts.cpp4
1 files changed, 3 insertions, 1 deletions
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 &params) {
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 {