[Scummvm-cvs-logs] scummvm master -> 47afe424c194d5d4fd1797948b53f999473fe922

dreammaster dreammaster at scummvm.org
Thu Apr 9 03:29:25 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
47afe424c1 MADS: Don't show protection dialog when exiting directly from main menu


Commit: 47afe424c194d5d4fd1797948b53f999473fe922
    https://github.com/scummvm/scummvm/commit/47afe424c194d5d4fd1797948b53f999473fe922
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-04-08T21:28:24-05:00

Commit Message:
MADS: Don't show protection dialog when exiting directly from main menu

Changed paths:
    engines/mads/nebular/game_nebular.cpp



diff --git a/engines/mads/nebular/game_nebular.cpp b/engines/mads/nebular/game_nebular.cpp
index c96f1c6..e9a3d0b 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;






More information about the Scummvm-git-logs mailing list