[Scummvm-cvs-logs] scummvm master -> d5938d25204f6d2bb2f97d9340db281742db8c5b

lukaslw lukaslw at gmail.com
Sun Nov 9 02:18:19 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d5938d2520 PRINCE: canSaveGameStateCurrently() - check conditions when you can't save the game state


Commit: d5938d25204f6d2bb2f97d9340db281742db8c5b
    https://github.com/scummvm/scummvm/commit/d5938d25204f6d2bb2f97d9340db281742db8c5b
Author: lukaslw (lukaslw at gmail.com)
Date: 2014-11-09T02:15:56+01:00

Commit Message:
PRINCE: canSaveGameStateCurrently() - check conditions when you can't save the game state

Changed paths:
    engines/prince/saveload.cpp



diff --git a/engines/prince/saveload.cpp b/engines/prince/saveload.cpp
index 706079f..65983f4 100644
--- a/engines/prince/saveload.cpp
+++ b/engines/prince/saveload.cpp
@@ -172,13 +172,20 @@ void PrinceMetaEngine::removeSaveState(const char *target, int slot) const {
 	g_system->getSavefileManager()->removeSavefile(fileName);
 }
 
-// TODO
 bool PrinceEngine::canSaveGameStateCurrently() {
-	return true;
+	if (_mouseFlag && _mouseFlag != 3) {
+		if (_mainHero->_visible) {
+			// 29 - Basement
+			if (_locationNr != 29) {
+				return true;
+			}
+		}
+	}
+	return false;
 }
 
-// TODO
 bool PrinceEngine::canLoadGameStateCurrently() {
+	// Always true
 	return true;
 }
 






More information about the Scummvm-git-logs mailing list