From d28cb8931e3f0f684efeae102c4cc10c9aa523e3 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 9 Sep 2005 07:32:29 +0000 Subject: After saving, return to the game instead of the main control panel. This is how the original did it (the DOS version, at least -- I couldn't get the Windows version to install under Wine), and is part of RFE #1273746. svn-id: r18795 --- sword1/control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sword1/control.cpp b/sword1/control.cpp index a519108370..6cb75e8222 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -311,7 +311,7 @@ uint8 Control::runPanel(void) { _system->updateScreen(); delay(1000 / 12); newMode = getClicks(mode, &retVal); - } while ((newMode != 1) && (retVal == 0) && (!SwordEngine::_systemVars.engineQuit)); + } while ((newMode != BUTTON_DONE) && (retVal == 0) && (!SwordEngine::_systemVars.engineQuit)); destroyButtons(); _resMan->resClose(fontId); _resMan->resClose(redFontId); @@ -414,7 +414,7 @@ uint8 Control::handleButtonClick(uint8 id, uint8 mode, uint8 *retVal) { if (mode == BUTTON_SAVE_PANEL) { _system->setFeatureState(OSystem::kFeatureVirtualKeyboard, false); if (saveToFile()) // don't go back to main panel if save fails. - return BUTTON_MAIN_PANEL; + return BUTTON_DONE; } else { if (restoreFromFile()) { // don't go back to main panel if restore fails. *retVal |= CONTROL_GAME_RESTORED; -- cgit v1.2.3