Merge pull request #1257 from dafioram/mohawkRivenAutosaveCredits

MOHAWK: RIVEN: Don't allow autosaving during credits
This commit is contained in:
Bastien Bouclet 2018-07-21 21:31:40 +02:00 committed by GitHub
commit 8f9daa906c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,7 +737,7 @@ void MohawkEngine_Riven::saveGameStateAndDisplayError(int slot, const Common::St
}
void MohawkEngine_Riven::tryAutoSaving() {
if (!canSaveGameStateCurrently() || !isGameStarted()) {
if (!canSaveGameStateCurrently() || !isGameStarted() || _gameEnded) {
return; // Can't save right now, try again on the next frame
}