TSAGE: Fix 'Restart' button, when game is over
This commit is contained in:
parent
2aaeb19a2c
commit
f51eaed595
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue