[Scummvm-git-logs] scummvm master -> 58cb82684d73daf165972fa4328e526f65018474
orgads
noreply at scummvm.org
Thu Jan 13 20:17:13 UTC 2022
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:
58cb82684d ENGINES: Fix re-autosave when the engine cannot save right now
Commit: 58cb82684d73daf165972fa4328e526f65018474
https://github.com/scummvm/scummvm/commit/58cb82684d73daf165972fa4328e526f65018474
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2022-01-13T22:16:58+02:00
Commit Message:
ENGINES: Fix re-autosave when the engine cannot save right now
_autosaveInterval is in seconds, but _lastAutosaveTime is in ms.
Reported by antoniou79.
Changed paths:
engines/engine.cpp
diff --git a/engines/engine.cpp b/engines/engine.cpp
index 45e8bfa3914..b421f8e0d23 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -623,7 +623,7 @@ void Engine::saveAutosaveIfEnabled() {
} else {
// Set the next autosave interval to be in 5 minutes, rather than whatever
// full autosave interval the user has selected
- _lastAutosaveTime += (5 * 60 * 1000) - _autosaveInterval;
+ _lastAutosaveTime += ((5 * 60 - _autosaveInterval) * 1000);
}
_autoSaving = false;
}
More information about the Scummvm-git-logs
mailing list