mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
Add missing timer adjustment when saving game in FF
svn-id: r22004
This commit is contained in:
parent
506cdd9054
commit
18cf15ffc3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user