aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-04-18 11:51:08 +0000
committerTravis Howell2006-04-18 11:51:08 +0000
commit18cf15ffc3801bc68bcf07708df6c7c260397410 (patch)
treefedbbf21adc8dd1b318607550b824f627b20f4bf /engines
parent506cdd9054198b6cf049b28b879bb1fff0b7d478 (diff)
downloadscummvm-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.cpp5
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);
}