aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-08-06 07:42:14 +0000
committerDenis Kasak2009-08-06 07:42:14 +0000
commit58c56e28b973b4068a646326a2b5563cb2d9b63e (patch)
treec93f3ab4f6f45936f941c9a05711018183d91822
parent907a35c9297044b87f4e0c5c586873f669cee7da (diff)
downloadscummvm-rg350-58c56e28b973b4068a646326a2b5563cb2d9b63e.tar.gz
scummvm-rg350-58c56e28b973b4068a646326a2b5563cb2d9b63e.tar.bz2
scummvm-rg350-58c56e28b973b4068a646326a2b5563cb2d9b63e.zip
Fixed the 'ESC room' feature to work as intended.
svn-id: r43087
-rw-r--r--engines/draci/draci.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp
index aea3938f24..4060b678ad 100644
--- a/engines/draci/draci.cpp
+++ b/engines/draci/draci.cpp
@@ -206,9 +206,14 @@ bool DraciEngine::handleEvents() {
// Check if there is an escape room defined for the current room
if (escRoom != kNoEscRoom) {
+
+ // Schedule room change
_game->setRoomNum(_game->getEscRoom());
_game->setGateNum(0);
_game->_roomChange = true;
+
+ // End any currently running GPL programs
+ _script->endCurrentProgram();
}
}
// Show walking map toggle