aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorSylvain Dupont2010-10-16 22:07:09 +0000
committerSylvain Dupont2010-10-16 22:07:09 +0000
commit4d28de5623480788afbd4b21668db08556f1e3aa (patch)
tree5f1e8bbe973552ebeb143b7371885e550abbab8d /engines/toon
parent40d38fcc0d8c63036132a7aab643a7405ef5f43f (diff)
downloadscummvm-rg350-4d28de5623480788afbd4b21668db08556f1e3aa.tar.gz
scummvm-rg350-4d28de5623480788afbd4b21668db08556f1e3aa.tar.bz2
scummvm-rg350-4d28de5623480788afbd4b21668db08556f1e3aa.zip
TOON: Prevent quick load/save when it's not currently possible
svn-id: r53550
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/toon.cpp4
1 files changed, 2 insertions, 2 deletions
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];