[Scummvm-git-logs] scummvm master -> 746665db63c1b4609d425fd5801e0d5c56360548

sev- noreply at scummvm.org
Thu Mar 16 14:10:17 UTC 2023


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:
746665db63 ENGINES: Update autosave time before adjusting interval


Commit: 746665db63c1b4609d425fd5801e0d5c56360548
    https://github.com/scummvm/scummvm/commit/746665db63c1b4609d425fd5801e0d5c56360548
Author: macca8 (brugenerol at tpg.com.au)
Date: 2023-03-16T15:10:12+01:00

Commit Message:
ENGINES: Update autosave time before adjusting interval

Correctly adjusts interval until next autosave attempt to 5 minutes, regardless of user’s selected autosave interval.

Changed paths:
    engines/engine.cpp


diff --git a/engines/engine.cpp b/engines/engine.cpp
index 5db870d7a33..249e4665237 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -637,9 +637,9 @@ void Engine::saveAutosaveIfEnabled() {
 		saveFlag = false;
 	}
 
-	if (saveFlag) {
-		_lastAutosaveTime = _system->getMillis();
-	} else {
+	_lastAutosaveTime = _system->getMillis();
+	
+	if (!saveFlag) {
 		// Set the next autosave interval to be in 5 minutes, rather than whatever
 		// full autosave interval the user has selected
 		_lastAutosaveTime += ((5 * 60 - _autosaveInterval) * 1000);




More information about the Scummvm-git-logs mailing list