From f9641a6d669ba5e361dffb91e832863bc1758812 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 23 Dec 2015 22:21:34 +0200 Subject: LAB: Show a more descriptive message when save/restore is aborted --- engines/lab/engine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') 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); } -- cgit v1.2.3