From 4d28de5623480788afbd4b21668db08556f1e3aa Mon Sep 17 00:00:00 2001 From: Sylvain Dupont Date: Sat, 16 Oct 2010 22:07:09 +0000 Subject: TOON: Prevent quick load/save when it's not currently possible svn-id: r53550 --- engines/toon/toon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/toon') diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 78e526c205..fdb69c4cf3 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -204,7 +204,7 @@ void ToonEngine::parseInput() { if (event.kbd.flags & Common::KBD_ALT) { int32 slotNum = event.kbd.ascii - '0'; - if (slotNum >= 0 && slotNum <= 9) { + if (slotNum >= 0 && slotNum <= 9 && canSaveGameStateCurrently()) { if (saveGame(slotNum, Common::String())) { // ok char buf[256]; @@ -224,7 +224,7 @@ void ToonEngine::parseInput() { if (event.kbd.flags & Common::KBD_CTRL) { int32 slotNum = event.kbd.ascii - '0'; - if (slotNum >= 0 && slotNum <= 9) { + if (slotNum >= 0 && slotNum <= 9 && canLoadGameStateCurrently()) { if (loadGame(slotNum)) { // ok char buf[256]; -- cgit v1.2.3