aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/player.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-08 14:05:17 -0500
committerPaul Gilbert2014-03-08 14:05:17 -0500
commitc2587af8f29b2b79beae7fda5a9b983614840b17 (patch)
tree67635d112688964e628f2824aea72a82e8a6f75e /engines/mads/player.cpp
parent984099ae2ca9dd53b47e44e7815c560c68acbd61 (diff)
downloadscummvm-rg350-c2587af8f29b2b79beae7fda5a9b983614840b17.tar.gz
scummvm-rg350-c2587af8f29b2b79beae7fda5a9b983614840b17.tar.bz2
scummvm-rg350-c2587af8f29b2b79beae7fda5a9b983614840b17.zip
MADS: Clarified Events::_currentTimer as Scene::_frameStartTime
Diffstat (limited to 'engines/mads/player.cpp')
-rw-r--r--engines/mads/player.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp
index d19a0cb93e..ef2ce9f27c 100644
--- a/engines/mads/player.cpp
+++ b/engines/mads/player.cpp
@@ -94,9 +94,11 @@ void Player::setDest(const Common::Point &pt, int facing) {
}
void Player::nextFrame() {
+ Scene &scene = _vm->_game->_scene;
+
_priorTimer += _ticksAmount;
- if (_vm->_events->_currentTimer >= _priorTimer) {
- _priorTimer = _vm->_events->_currentTimer;
+ if (scene._frameStartTime >= _priorTimer) {
+ _priorTimer = scene._frameStartTime;
if (_moving) {
move();
} else {