diff options
author | lukaslw | 2014-11-09 02:15:56 +0100 |
---|---|---|
committer | lukaslw | 2014-11-09 02:15:56 +0100 |
commit | d5938d25204f6d2bb2f97d9340db281742db8c5b (patch) | |
tree | e99562d703df9a29972d547192854b066426116c | |
parent | ce1e776eeef153ca3aa6beaae5ce3786919368d6 (diff) | |
download | scummvm-rg350-d5938d25204f6d2bb2f97d9340db281742db8c5b.tar.gz scummvm-rg350-d5938d25204f6d2bb2f97d9340db281742db8c5b.tar.bz2 scummvm-rg350-d5938d25204f6d2bb2f97d9340db281742db8c5b.zip |
PRINCE: canSaveGameStateCurrently() - check conditions when you can't save the game state
-rw-r--r-- | engines/prince/saveload.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/prince/saveload.cpp b/engines/prince/saveload.cpp index 706079ffaf..65983f40de 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; } |