mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
CINE: Fix total playtime loading from savegame.
Total playtime is kept as milliseconds in the engine. It is saved as seconds. Previously it was not converted to milliseconds on load but seconds were took as milliseconds (i.e. 10s -> 10ms). Fix that by converting total playtime on load from seconds to milliseconds.
This commit is contained in:
parent
8c0a71444f
commit
be3c84c8e8
@ -880,7 +880,7 @@ bool CineEngine::makeLoad(const Common::String &saveName) {
|
||||
|
||||
ExtendedSavegameHeader header;
|
||||
if (MetaEngine::readSavegameHeader(saveFile.get(), &header)) {
|
||||
setTotalPlayTime(header.playtime);
|
||||
setTotalPlayTime(header.playtime * 1000); // Seconds to milliseconds
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user