diff options
-rw-r--r-- | saga/input.cpp | 2 | ||||
-rw-r--r-- | saga/sfuncs.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/saga/input.cpp b/saga/input.cpp index c93a5782be..d49dbdf3d3 100644 --- a/saga/input.cpp +++ b/saga/input.cpp @@ -127,7 +127,7 @@ int SagaEngine::processInput() { _mousePos = event.mouse; break; case OSystem::EVENT_QUIT: - _system->quit(); + _vm->shutDown(); break; default: break; diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp index 98ac131ae6..d58f1dadc0 100644 --- a/saga/sfuncs.cpp +++ b/saga/sfuncs.cpp @@ -504,7 +504,8 @@ void Script::sfScriptGotoScene(SCRIPTFUNC_PARAMS) { sceneNumber = thread->pop(); entrance = thread->pop(); if (sceneNumber < 0) { - //TODO: quit from game at all + _vm->shutDown(); + return; } // This is used for latter demos where all places on world map except |