aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2012-11-30 18:10:51 +0100
committerJohannes Schickel2012-11-30 18:10:51 +0100
commit6fd5f650bcad149d7352e5a1406eef8f5ea8397a (patch)
treea68f7a81f1c23f2a9815407524543492e4bbd431 /engines/kyra
parentf96011511beaf16394a54ef5f7ca3975324a31d9 (diff)
downloadscummvm-rg350-6fd5f650bcad149d7352e5a1406eef8f5ea8397a.tar.gz
scummvm-rg350-6fd5f650bcad149d7352e5a1406eef8f5ea8397a.tar.bz2
scummvm-rg350-6fd5f650bcad149d7352e5a1406eef8f5ea8397a.zip
KYRA: Allow user to cancel saving in EoB via ESC.
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/gui_eob.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/kyra/gui_eob.cpp b/engines/kyra/gui_eob.cpp
index 4f241e785d..1c827e2802 100644
--- a/engines/kyra/gui_eob.cpp
+++ b/engines/kyra/gui_eob.cpp
@@ -2705,11 +2705,20 @@ bool GUI_EoB::runSaveMenu(int x, int y) {
for (int in = -1; in == -1 && !_vm->shouldQuit();) {
_screen->fillRect(fx - 2, fy, fx + 160, fy + 8, _vm->guiSettings()->colors.fill);
in = getTextInput(_saveSlotStringsTemp[slot], x + 1, fy, 19, 2, 0, 8);
+ if (in == -1) {
+ useSlot = false;
+ break;
+ }
+
if (!strlen(_saveSlotStringsTemp[slot])) {
messageDialogue(11, 54, 6);
in = -1;
}
- };
+ }
+
+ if (!useSlot) {
+ continue;
+ }
_screen->fillRect(fx - 2, fy, fx + 160, fy + 8, _vm->guiSettings()->colors.fill);
_screen->printShadedText(_saveSlotStringsTemp[slot], (x + 1) << 3, fy, 15, 0);