diff options
author | Eugene Sandulenko | 2016-09-22 18:15:48 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-22 18:18:59 +0200 |
commit | b32f167345de9cdf30d1d229aca75f13df918e5b (patch) | |
tree | 05d68c69c39ca7fe32e988cd670215e64706ec2a /engines/fullpipe | |
parent | 19780a8e0544c4c81b4cd04ae59f2366ec647da0 (diff) | |
download | scummvm-rg350-b32f167345de9cdf30d1d229aca75f13df918e5b.tar.gz scummvm-rg350-b32f167345de9cdf30d1d229aca75f13df918e5b.tar.bz2 scummvm-rg350-b32f167345de9cdf30d1d229aca75f13df918e5b.zip |
FULLPIPE: Fix Kozyawkas not hanging in the air when jar is lifter in scene04
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scenes/scene04.cpp | 10 |
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); + } } } |