[Scummvm-cvs-logs] SF.net SVN: scummvm:[39122] scummvm/trunk/engines/sword1/detection.cpp

hkz at users.sourceforge.net hkz at users.sourceforge.net
Wed Mar 4 11:39:12 CET 2009


Revision: 39122
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39122&view=rev
Author:   hkz
Date:     2009-03-04 10:39:12 +0000 (Wed, 04 Mar 2009)

Log Message:
-----------
sword1: disable saving/loading through GMM when in game menu

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/detection.cpp

Modified: scummvm/trunk/engines/sword1/detection.cpp
===================================================================
--- scummvm/trunk/engines/sword1/detection.cpp	2009-03-04 10:33:29 UTC (rev 39121)
+++ scummvm/trunk/engines/sword1/detection.cpp	2009-03-04 10:39:12 UTC (rev 39122)
@@ -326,7 +326,7 @@
 }
 
 bool SwordEngine::canLoadGameStateCurrently() {
-	return mouseIsActive();
+	return (mouseIsActive() && !_control->isPanelShown()); // Disable GMM loading when game panel is shown
 }
 
 Common::Error SwordEngine::saveGameState(int slot, const char *desc) {
@@ -336,7 +336,7 @@
 }
 
 bool SwordEngine::canSaveGameStateCurrently() {
-	return mouseIsActive();
+	return (mouseIsActive() && !_control->isPanelShown());
 }
 
 } // End of namespace Sword1


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