aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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