diff options
author | Travis Howell | 2006-04-18 11:51:08 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-18 11:51:08 +0000 |
commit | 18cf15ffc3801bc68bcf07708df6c7c260397410 (patch) | |
tree | fedbbf21adc8dd1b318607550b824f627b20f4bf /engines | |
parent | 506cdd9054198b6cf049b28b879bb1fff0b7d478 (diff) | |
download | scummvm-rg350-18cf15ffc3801bc68bcf07708df6c7c260397410.tar.gz scummvm-rg350-18cf15ffc3801bc68bcf07708df6c7c260397410.tar.bz2 scummvm-rg350-18cf15ffc3801bc68bcf07708df6c7c260397410.zip |
Add missing timer adjustment when saving game in FF
svn-id: r22004
Diffstat (limited to 'engines')
-rw-r--r-- | engines/simon/saveload.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/simon/saveload.cpp b/engines/simon/saveload.cpp index 374dbab6b6..b2224ab739 100644 --- a/engines/simon/saveload.cpp +++ b/engines/simon/saveload.cpp @@ -481,6 +481,7 @@ bool SimonEngine::saveGame(uint slot, char *caption) { Common::OutSaveFile *f; uint item_index, num_item, i, j; TimeEvent *te; + uint32 gsc = _gameStoppedClock; _lockWord |= 0x100; @@ -506,8 +507,10 @@ bool SimonEngine::saveGame(uint slot, char *caption) { i++; f->writeUint32BE(i); + if (_clockStopped) + gsc += ((uint32)time(NULL) - _clockStopped); for (te = _firstTimeStruct; te; te = te->next) { - f->writeUint32BE(te->time + _gameStoppedClock); + f->writeUint32BE(te->time + gsc); f->writeUint16BE(te->subroutine_id); } |