aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index a093eab6fb..445451ec2c 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -951,9 +951,15 @@ void sceneHandler04_walkKozyawka() {
void sceneHandler04_bottleUpdateObjects(int off) {
for (Common::List<GameObject *>::iterator it = g_vars->scene04_bottleObjList.begin(); it != g_vars->scene04_bottleObjList.end(); ++it) {
- GameObject *obj = *it;
+ if ((*it)->_objtype == kObjTypeStaticANIObject) {
+ StaticANIObject *st = (StaticANIObject *)*it;
- obj->setOXY(obj->_ox, off + obj->_oy);
+ st->setOXY(st->_ox, off + st->_oy);
+ } else {
+ GameObject *obj = *it;
+
+ obj->setOXY(obj->_ox, off + obj->_oy);
+ }
}
}