From b32f167345de9cdf30d1d229aca75f13df918e5b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 22 Sep 2016 18:15:48 +0200 Subject: FULLPIPE: Fix Kozyawkas not hanging in the air when jar is lifter in scene04 --- engines/fullpipe/scenes/scene04.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines/fullpipe') 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::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); + } } } -- cgit v1.2.3