diff options
author | Eugene Sandulenko | 2014-01-11 21:43:59 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-12 00:48:11 +0200 |
commit | 2d3ac3100c2e9fde135f9defb07a632632341242 (patch) | |
tree | d4ea388959a9b7ec7710a2df78db9b5caeeecb4d /engines/fullpipe | |
parent | 91baf35726d297b6ebf1e7917aba043125589601 (diff) | |
download | scummvm-rg350-2d3ac3100c2e9fde135f9defb07a632632341242.tar.gz scummvm-rg350-2d3ac3100c2e9fde135f9defb07a632632341242.tar.bz2 scummvm-rg350-2d3ac3100c2e9fde135f9defb07a632632341242.zip |
FULLPIPE: Implement StaticANIObject::adjustSomeXY()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/statics.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index e0e6e4eb0b..5f62cd4f1f 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -944,7 +944,24 @@ void StaticANIObject::stopAnim_maybe() { } void StaticANIObject::adjustSomeXY() { - warning("STUB: StaticANIObject::adjustSomeXY()"); + if (_movement) { + Common::Point point; + + _movement->calcSomeXY(point, 0); + + int diff = abs(point.y) - abs(point.x); + + _movement->calcSomeXY(point, 1); + + if (diff > 0) + _ox += point.x; + else + _oy += point.y; + + _statics = _movement->_staticsObj2; + _movement = 0; + _someDynamicPhaseIndex = -1; + } } MessageQueue *StaticANIObject::changeStatics1(int msgNum) { |