diff options
author | Filippos Karapetis | 2015-12-23 22:21:34 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:43:17 +0100 |
commit | f9641a6d669ba5e361dffb91e832863bc1758812 (patch) | |
tree | 30746150bd5149ed752d9f2f8f3f0be495ca5a04 /engines | |
parent | d30ee82cdbda9a92522be6c506ded7def89bf6ba (diff) | |
download | scummvm-rg350-f9641a6d669ba5e361dffb91e832863bc1758812.tar.gz scummvm-rg350-f9641a6d669ba5e361dffb91e832863bc1758812.tar.bz2 scummvm-rg350-f9641a6d669ba5e361dffb91e832863bc1758812.zip |
LAB: Show a more descriptive message when save/restore is aborted
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lab/engine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 4c1266438d..cbac66e855 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -895,7 +895,7 @@ void LabEngine::processMainButton(uint16 &curInv, uint16 &lastInv, uint16 &oldDi } void LabEngine::processAltButton(uint16 &curInv, uint16 &lastInv, uint16 buttonId, uint16 &actionMode) { - bool doit; + bool saveRestoreSuccessful = true; _anim->_doBlack = true; @@ -917,7 +917,7 @@ void LabEngine::processAltButton(uint16 &curInv, uint16 &lastInv, uint16 buttonI _anim->stopDiff(); _curFileName = " "; - doit = !saveRestoreGame(); + saveRestoreSuccessful = saveRestoreGame(); _closeDataPtr = nullptr; _mainDisplay = true; @@ -926,8 +926,8 @@ void LabEngine::processAltButton(uint16 &curInv, uint16 &lastInv, uint16 buttonI _graphics->drawPanel(); - if (doit) { - _graphics->drawMessage("Disk operation failed.", false); + if (!saveRestoreSuccessful) { + _graphics->drawMessage("Save/restore aborted", false); _graphics->setPalette(initColors, 8); _system->delayMillis(1000); } |