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:
Kari Salminen 2020-09-10 01:00:21 +03:00 committed by Thierry Crozat
parent 8c0a71444f
commit be3c84c8e8

View File

@ -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
}
}