From 5b3ccfb1ac425e60272bc38d0cb40cc11936781a Mon Sep 17 00:00:00 2001 From: Retro-Junk Date: Wed, 31 Aug 2016 23:53:08 +0300 Subject: FULLPIPE: Fix incorrect code path in StaticANIObject::update --- engines/fullpipe/statics.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 1f25bfb46e..1e43720c32 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -859,15 +859,15 @@ void StaticANIObject::update(int counterdiff) { } } } - if (!_movement) - return; - - _stepArray.getCurrPoint(&point); - setOXY(point.x + _ox, point.y + _oy); - _stepArray.gotoNextPoint(); - if (_someDynamicPhaseIndex == _movement->_currDynamicPhaseIndex) - adjustSomeXY(); } + if (!_movement) + return; + + _stepArray.getCurrPoint(&point); + setOXY(point.x + _ox, point.y + _oy); + _stepArray.gotoNextPoint(); + if (_someDynamicPhaseIndex == _movement->_currDynamicPhaseIndex) + adjustSomeXY(); } else if (_flags & 0x20) { _flags ^= 0x20; _flags |= 1; -- cgit v1.2.3