[Scummvm-cvs-logs] SF.net SVN: scummvm:[53550] scummvm/trunk/engines/toon/toon.cpp

sylvaintv at users.sourceforge.net sylvaintv at users.sourceforge.net
Sun Oct 17 00:07:09 CEST 2010


Revision: 53550
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53550&view=rev
Author:   sylvaintv
Date:     2010-10-16 22:07:09 +0000 (Sat, 16 Oct 2010)

Log Message:
-----------
TOON: Prevent quick load/save when it's not currently possible 

Modified Paths:
--------------
    scummvm/trunk/engines/toon/toon.cpp

Modified: scummvm/trunk/engines/toon/toon.cpp
===================================================================
--- scummvm/trunk/engines/toon/toon.cpp	2010-10-16 21:58:33 UTC (rev 53549)
+++ scummvm/trunk/engines/toon/toon.cpp	2010-10-16 22:07:09 UTC (rev 53550)
@@ -204,7 +204,7 @@
 
 			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 @@
 
 			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];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list