diff options
author | Paul Gilbert | 2014-03-04 09:33:57 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-03-04 09:33:57 -0500 |
commit | f6888eef1069ac5df07c3f4dcc3a30755bc4ebb0 (patch) | |
tree | b7e70ea90d6a266101da6080e2142f750dfdb965 /engines/mads/sequence.cpp | |
parent | 9e356dd945863a4c4dfa89f2a94dd1a56c2d03a6 (diff) | |
download | scummvm-rg350-f6888eef1069ac5df07c3f4dcc3a30755bc4ebb0.tar.gz scummvm-rg350-f6888eef1069ac5df07c3f4dcc3a30755bc4ebb0.tar.bz2 scummvm-rg350-f6888eef1069ac5df07c3f4dcc3a30755bc4ebb0.zip |
MADS: Implementation of timer functionality for Scene::doFrame
Diffstat (limited to 'engines/mads/sequence.cpp')
-rw-r--r-- | engines/mads/sequence.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp index 7c7b25d32a..8f25007b48 100644 --- a/engines/mads/sequence.cpp +++ b/engines/mads/sequence.cpp @@ -307,10 +307,10 @@ void SequenceList::tick() { } } -void SequenceList::delay(uint32 v1, uint32 v2) { +void SequenceList::delay(uint32 priorFrameTime, uint32 currentTime) { for (uint idx = 0; idx < _entries.size(); ++idx) { if (_entries[idx]._active) { - _entries[idx]._timeout += v1 - v2; + _entries[idx]._timeout += currentTime - priorFrameTime; } } } |