[Scummvm-git-logs] scummvm branch-2-9 -> d5a46c252d80fcc35bd537d3564f6d10a85c4ca1
mduggan
noreply at scummvm.org
Sat Nov 30 05:20:05 UTC 2024
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:
d5a46c252d DGDS: Sync play time and current frame ms correctly
Commit: d5a46c252d80fcc35bd537d3564f6d10a85c4ca1
https://github.com/scummvm/scummvm/commit/d5a46c252d80fcc35bd537d3564f6d10a85c4ca1
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2024-11-30T16:19:58+11:00
Commit Message:
DGDS: Sync play time and current frame ms correctly
This fixes extra time getting added sometimes on loading game, as _thisFrameMs
was not being updated. The problem was on load so no change is needed to the
save data.
This fixes #15537.
Changed paths:
engines/dgds/dgds.cpp
diff --git a/engines/dgds/dgds.cpp b/engines/dgds/dgds.cpp
index 201e4e72636..df21875557a 100644
--- a/engines/dgds/dgds.cpp
+++ b/engines/dgds/dgds.cpp
@@ -854,9 +854,8 @@ Common::Error DgdsEngine::syncGame(Common::Serializer &s) {
s.syncAsByte(_justChangedScene2);
// sync engine play time to ensure various events run correctly.
- uint32 playtime = DgdsEngine::getInstance()->getThisFrameMs();
- s.syncAsUint32LE(playtime);
- setTotalPlayTime(playtime);
+ s.syncAsUint32LE(_thisFrameMs);
+ setTotalPlayTime(_thisFrameMs);
s.syncString(_backgroundFile);
if (s.isLoading()) {
More information about the Scummvm-git-logs
mailing list