[Scummvm-git-logs] scummvm master -> 43b3eafcb4304a6f67ed09dc8a2a05a0047c61e3

mduggan noreply at scummvm.org
Sat Nov 30 05:19:35 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:
43b3eafcb4 DGDS: Sync play time and current frame ms correctly


Commit: 43b3eafcb4304a6f67ed09dc8a2a05a0047c61e3
    https://github.com/scummvm/scummvm/commit/43b3eafcb4304a6f67ed09dc8a2a05a0047c61e3
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2024-11-30T16:17:56+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 064bc36de8e..bf2b7f92dc4 100644
--- a/engines/dgds/dgds.cpp
+++ b/engines/dgds/dgds.cpp
@@ -900,9 +900,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