[Scummvm-git-logs] scummvm master -> 4e714072780e656a99bc92bf121878a6fea88823
rvanlaar
noreply at scummvm.org
Sun Feb 23 09:55:53 UTC 2025
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:
4e71407278 DIRECTOR: LINGO: XTRA: TimeXTRA: improve comment
Commit: 4e714072780e656a99bc92bf121878a6fea88823
https://github.com/scummvm/scummvm/commit/4e714072780e656a99bc92bf121878a6fea88823
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2025-02-23T10:55:46+01:00
Commit Message:
DIRECTOR: LINGO: XTRA: TimeXTRA: improve comment
`m_getTime` doesn't start at 01:00. It starts at 00:00 UTC.
The underlying GetSystemTime returns the time in UTC.
The comment was updated to reflect this.
Changed paths:
engines/director/lingo/xtras/timextra.cpp
diff --git a/engines/director/lingo/xtras/timextra.cpp b/engines/director/lingo/xtras/timextra.cpp
index e5488273b63..83b098db743 100644
--- a/engines/director/lingo/xtras/timextra.cpp
+++ b/engines/director/lingo/xtras/timextra.cpp
@@ -43,8 +43,9 @@ new object me, any
/**************************************************
- Return value is hours * 3600 + minutes * 60 + seconds
- where the starting point 01:00 is 0.
+ Return value is hours * 3600 + minutes * 60 + seconds in UTC.
+ The underlying function in the XTRA is GetSystemTime:
+ https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemtime
Safecrackers only needs the number of seconds since the start of the game.
Since not all platforms that run ScummVM have a clock, it's implemented as
More information about the Scummvm-git-logs
mailing list