diff options
author | Retro-Junk | 2016-08-31 23:53:08 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-31 22:56:42 +0200 |
commit | 5b3ccfb1ac425e60272bc38d0cb40cc11936781a (patch) | |
tree | 3410e6b0ec90d5a73a70fde1a7f69be44a14902a | |
parent | d6d9967201af55cf376e54b4a3a35d2c2bd5e6d9 (diff) | |
download | scummvm-rg350-5b3ccfb1ac425e60272bc38d0cb40cc11936781a.tar.gz scummvm-rg350-5b3ccfb1ac425e60272bc38d0cb40cc11936781a.tar.bz2 scummvm-rg350-5b3ccfb1ac425e60272bc38d0cb40cc11936781a.zip |
FULLPIPE: Fix incorrect code path in StaticANIObject::update
-rw-r--r-- | engines/fullpipe/statics.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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; |