Fixed the 'ESC room' feature to work as intended.

svn-id: r43087
This commit is contained in:
Denis Kasak 2009-08-06 07:42:14 +00:00
parent 907a35c929
commit 58c56e28b9

View File

@ -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