From 5accf01881424e10e1700bf36c4b8236ed200258 Mon Sep 17 00:00:00 2001 From: Robert Crossfield Date: Sat, 28 Jan 2012 00:25:30 +1100 Subject: SCUMM: Remove unnecessary calls to animateActor --- engines/scumm/actor.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'engines') diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp index c22fc8a438..95b7f90318 100644 --- a/engines/scumm/actor.cpp +++ b/engines/scumm/actor.cpp @@ -401,9 +401,6 @@ void Actor::startWalkActor(int destX, int destY, int dir) { if (_pos.x == abr.x && _pos.y == abr.y && (dir == -1 || _facing == dir)) return; - if( _vm->_game.version == 0 ) - ((ActorC64*) this)->animateActor( newDirToOldDir( _facing ) ); - } else { if (_ignoreBoxes) { abr.box = kInvalidBox; @@ -909,7 +906,7 @@ void ActorC64::setDirection(int direction) { _animFrameRepeat = -1; animateActor(res); - if(_moving & MF_TURN) + if(_moving) animateCostume(); } @@ -1002,11 +999,6 @@ void Actor::putActor(int dstX, int dstY, int newRoom) { if (isInCurrentRoom()) showActor(); } - - if( _vm->_game.version == 0 ) { - _moving = 0; - setDirection( oldDirToNewDir(2)); - } } static bool inBoxQuickReject(const BoxCoords &box, int x, int y, int threshold) { -- cgit v1.2.3