aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-07-22 01:03:10 +0000
committerMax Horn2003-07-22 01:03:10 +0000
commit1ba701296920115d1b70b9e0d22810e1104dad65 (patch)
tree09e3a1ffc2e90c6746ded89a3abc0b0a7e65ca79 /scumm
parentd79ae6f1f28da20530ce9df61a9ce4cc5160d3cc (diff)
downloadscummvm-rg350-1ba701296920115d1b70b9e0d22810e1104dad65.tar.gz
scummvm-rg350-1ba701296920115d1b70b9e0d22810e1104dad65.tar.bz2
scummvm-rg350-1ba701296920115d1b70b9e0d22810e1104dad65.zip
fix for bug #770704
svn-id: r9115
Diffstat (limited to 'scumm')
-rw-r--r--scumm/scummvm.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 9e94d8c566..79b5010eeb 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -1626,6 +1626,12 @@ void Scumm::processKbd() {
_videoFinished = true;
} else
abortCutscene();
+ if (_version <= 2) {
+ // Ensure that the input script also sees the key press.
+ // This is necessary so you can abort the airplane travel
+ // in Zak.
+ VAR(VAR_KEYPRESS) = VAR(VAR_CUTSCENEEXIT_KEY);
+ }
} else if (_lastKeyHit == saveloadkey) {
if (VAR_SAVELOAD_SCRIPT != 0xFF && _currentRoom != 0)
runScript(VAR(VAR_SAVELOAD_SCRIPT), 0, 0, 0);