aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sequence.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-04 09:33:57 -0500
committerPaul Gilbert2014-03-04 09:33:57 -0500
commitf6888eef1069ac5df07c3f4dcc3a30755bc4ebb0 (patch)
treeb7e70ea90d6a266101da6080e2142f750dfdb965 /engines/mads/sequence.cpp
parent9e356dd945863a4c4dfa89f2a94dd1a56c2d03a6 (diff)
downloadscummvm-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.cpp4
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;
}
}
}