aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/player.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-16 16:50:53 -0400
committerPaul Gilbert2014-03-16 16:50:53 -0400
commitd599c7c404729217cf4cf85ee02b2d8b3f3b9ec9 (patch)
tree4cd3ac0bdd819c48cbbd3d83638d90dc94482903 /engines/mads/player.cpp
parent74da0c2ef7a5a77ddfcda26b28ebdeab68a9f8f5 (diff)
downloadscummvm-rg350-d599c7c404729217cf4cf85ee02b2d8b3f3b9ec9.tar.gz
scummvm-rg350-d599c7c404729217cf4cf85ee02b2d8b3f3b9ec9.tar.bz2
scummvm-rg350-d599c7c404729217cf4cf85ee02b2d8b3f3b9ec9.zip
MADS: Fix to display player
Diffstat (limited to 'engines/mads/player.cpp')
-rw-r--r--engines/mads/player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp
index c3ce270954..3fc7ca53dd 100644
--- a/engines/mads/player.cpp
+++ b/engines/mads/player.cpp
@@ -362,8 +362,8 @@ void Player::setDest(const Common::Point &pt, int facing) {
void Player::nextFrame() {
Scene &scene = _vm->_game->_scene;
- _priorTimer += _ticksAmount;
- if (scene._frameStartTime >= _priorTimer) {
+ uint32 newTime = _priorTimer + _ticksAmount;
+ if (scene._frameStartTime >= newTime) {
_priorTimer = scene._frameStartTime;
if (_moving) {
move();