From 58c56e28b973b4068a646326a2b5563cb2d9b63e Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Thu, 6 Aug 2009 07:42:14 +0000 Subject: Fixed the 'ESC room' feature to work as intended. svn-id: r43087 --- engines/draci/draci.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3