diff options
author | Paul Gilbert | 2017-06-17 13:39:13 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-17 13:39:13 -0400 |
commit | 9dbd9c567e298f076be0b1ce0a87b3db5566e3c9 (patch) | |
tree | a5ff22ebc96c14e25978a7854d18b24cc7733222 /engines/titanic/core | |
parent | 9b09900a0745a016b0ca13ce88bb9a26ab6e0547 (diff) | |
download | scummvm-rg350-9dbd9c567e298f076be0b1ce0a87b3db5566e3c9.tar.gz scummvm-rg350-9dbd9c567e298f076be0b1ce0a87b3db5566e3c9.tar.bz2 scummvm-rg350-9dbd9c567e298f076be0b1ce0a87b3db5566e3c9.zip |
TITANIC: Fix maintaining total playtime for savegames
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/project_item.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp index 1093a5c6e7..205eecfd2f 100644 --- a/engines/titanic/core/project_item.cpp +++ b/engines/titanic/core/project_item.cpp @@ -177,6 +177,7 @@ void CProjectItem::loadGame(int slotId) { TitanicSavegameHeader header; readSavegameHeader(&file, header); delete header._thumbnail; + g_vm->_events->setTotalPlayTicks(header._totalFrames); // Load the contents in CProjectItem *newProject = loadData(&file); @@ -545,7 +546,7 @@ void CProjectItem::writeSavegameHeader(SimpleFile *file, TitanicSavegameHeader & file->writeUint16LE(td.tm_mday); file->writeUint16LE(td.tm_hour); file->writeUint16LE(td.tm_min); - file->writeUint32LE(g_vm->_events->getFrameCounter()); + file->writeUint32LE(g_vm->_events->getTotalPlayTicks()); } Graphics::Surface *CProjectItem::createThumbnail() { |