aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorstrangerke2011-05-28 09:37:08 +0200
committerstrangerke2011-05-28 09:37:08 +0200
commitf51eaed5952ecb53ce9c780d05f04eb94e64b7e4 (patch)
tree3913a7b6d4a69c5494ce162e4460853739fd7cd1 /engines/tsage
parent2aaeb19a2c77b624d15a19993781559557b0386f (diff)
downloadscummvm-rg350-f51eaed5952ecb53ce9c780d05f04eb94e64b7e4.tar.gz
scummvm-rg350-f51eaed5952ecb53ce9c780d05f04eb94e64b7e4.tar.bz2
scummvm-rg350-f51eaed5952ecb53ce9c780d05f04eb94e64b7e4.zip
TSAGE: Fix 'Restart' button, when game is over
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/ringworld_logic.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/tsage/ringworld_logic.cpp b/engines/tsage/ringworld_logic.cpp
index 3f68e4673b..95c9da9fe7 100644
--- a/engines/tsage/ringworld_logic.cpp
+++ b/engines/tsage/ringworld_logic.cpp
@@ -1413,7 +1413,10 @@ void RingworldGame::endGame(int resNum, int lineNum) {
// Savegames exist, so prompt for Restore/Restart
bool breakFlag;
do {
- if (MessageDialog::show(msg, RESTART_BTN_STRING, RESTORE_BTN_STRING) == 0 || _vm->shouldQuit()) {
+ if (_vm->shouldQuit()) {
+ breakFlag = true;
+ } else if (MessageDialog::show(msg, RESTART_BTN_STRING, RESTORE_BTN_STRING) == 0) {
+ restart();
breakFlag = true;
} else {
handleSaveLoad(false, _globals->_sceneHandler._loadGameSlot, _globals->_sceneHandler._saveName);