aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-08-21 23:17:09 +0300
committerEugene Sandulenko2013-09-06 14:51:17 +0300
commitebaf5f6b4d36e9009014ffdd9286b153f611def1 (patch)
tree535c39fa9fe79cca6e178c2e8a63eb9130c4731c /engines/fullpipe
parente826d359c9c452664a242cda71939dc9a1640488 (diff)
downloadscummvm-rg350-ebaf5f6b4d36e9009014ffdd9286b153f611def1.tar.gz
scummvm-rg350-ebaf5f6b4d36e9009014ffdd9286b153f611def1.tar.bz2
scummvm-rg350-ebaf5f6b4d36e9009014ffdd9286b153f611def1.zip
FULLPIPE: Bugfix StaticANIObject::stopAnim_maybe()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/statics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp
index 897db56f89..c4097386f9 100644
--- a/engines/fullpipe/statics.cpp
+++ b/engines/fullpipe/statics.cpp
@@ -671,12 +671,12 @@ void StaticANIObject::stopAnim_maybe() {
_ox -= _movement->_mx;
_oy -= _movement->_my;
+ _statics->getSomeXY(point);
if (_movement->_currMovement) {
_oy += point.y;
_ox -= point.x;
_ox += _statics->getDimensions(&point)->x;
} else {
- _statics->getSomeXY(point);
_ox += point.x;
_oy += point.y;
}
@@ -693,7 +693,7 @@ void StaticANIObject::stopAnim_maybe() {
oid = _movement->_id;
_movement = 0;
- ExCommand *ex = new ExCommand(oid, 17, 24, 0, 0, 0, 1, 0, 0, 0);
+ ExCommand *ex = new ExCommand(_id, 17, 24, 0, 0, 0, 1, 0, 0, 0);
ex->_keyCode = _okeyCode;
ex->_excFlags = 2;
ex->postMessage();
@@ -708,7 +708,7 @@ void StaticANIObject::stopAnim_maybe() {
if (_messageQueueId == oldmqid) {
_messageQueueId = 0;
if (_field_34 == 1)
- updateGlobalMessageQueue(mqid, oldmqid);
+ updateGlobalMessageQueue(mqid, _id);
}
}
}