From 47afe424c194d5d4fd1797948b53f999473fe922 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 8 Apr 2015 21:28:24 -0500 Subject: MADS: Don't show protection dialog when exiting directly from main menu --- engines/mads/nebular/game_nebular.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') diff --git a/engines/mads/nebular/game_nebular.cpp b/engines/mads/nebular/game_nebular.cpp index c96f1c6df9..e9a3d0b716 100644 --- a/engines/mads/nebular/game_nebular.cpp +++ b/engines/mads/nebular/game_nebular.cpp @@ -107,6 +107,9 @@ void GameNebular::startGame() { _vm->_dialogs->showDialog(); } while (!_vm->shouldQuit() && _vm->_dialogs->_pendingDialog != DIALOG_NONE); + if (_vm->shouldQuit()) + return; + _priorSectionNumber = 0; _priorSectionNumber = -1; _scene._priorSceneId = 0; -- cgit v1.2.3