aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/mult_v2.cpp
diff options
context:
space:
mode:
authorSven Hesse2006-04-14 18:18:46 +0000
committerSven Hesse2006-04-14 18:18:46 +0000
commitcff96b0a75c3d20a822409d50db356b6cd06f54b (patch)
tree2a227166e375d5e7d3efd6429424e7b1a00366d9 /engines/gob/mult_v2.cpp
parentedd8557a0e9fbc4be48abe0579349642dc55d243 (diff)
downloadscummvm-rg350-cff96b0a75c3d20a822409d50db356b6cd06f54b.tar.gz
scummvm-rg350-cff96b0a75c3d20a822409d50db356b6cd06f54b.tar.bz2
scummvm-rg350-cff96b0a75c3d20a822409d50db356b6cd06f54b.zip
- Seems like I forget a branch in Mult_v2::animate()
- sub_1A52B is Scenery::updateStatic() svn-id: r21889
Diffstat (limited to 'engines/gob/mult_v2.cpp')
-rw-r--r--engines/gob/mult_v2.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/engines/gob/mult_v2.cpp b/engines/gob/mult_v2.cpp
index fa05f643da..f6ddf2abc0 100644
--- a/engines/gob/mult_v2.cpp
+++ b/engines/gob/mult_v2.cpp
@@ -1005,6 +1005,25 @@ void Mult_v2::animate(void) {
animObj1 = _renderData2[orderArray[i]];
animData1 = animObj1->pAnimData;
if (animObj1->someFlag == 0) {
+ if (animData1->isStatic == 0) {
+ for (j = 0; j < orderArrayPos; j++) {
+ animObj2 = _renderData2[orderArray[j]];
+ if ((animObj2->someFlag != 0) &&
+ (animObj1->somethingRight >= animObj2->somethingLeft) &&
+ (animObj2->somethingRight >= animObj1->somethingLeft) &&
+ (animObj1->somethingBottom >= animObj2->somethingTop) &&
+ (animObj2->somethingBottom >= animObj1->somethingTop))
+ {
+ _vm->_scenery->_toRedrawLeft = animObj2->somethingLeft;
+ _vm->_scenery->_toRedrawRight = animObj2->somethingRight;
+ _vm->_scenery->_toRedrawTop = animObj2->somethingTop;
+ _vm->_scenery->_toRedrawBottom = animObj2->somethingBottom;
+ _vm->_scenery->updateAnim(animData1->layer, animData1->frame,
+ animData1->animation, 12, *animObj1->pPosX, *animObj1->pPosY, 1);
+ _vm->_scenery->updateStatic(animObj1->pAnimData->order + 1);
+ }
+ }
+ }
} else {
if (animData1->isStatic == 0) {
_vm->_scenery->updateAnim(animData1->layer, animData1->frame,
@@ -1039,7 +1058,7 @@ void Mult_v2::animate(void) {
_vm->_scenery->_toRedrawTop = animObj1->somethingTop;
_vm->_scenery->_toRedrawBottom = animObj1->somethingBottom;
}
- warning("GOB2 Stub! sub_1A52B(animObj1->pAnimData->order);");
+ _vm->_scenery->updateStatic(animObj1->pAnimData->order + 1);
}
}