Skip to content

Commit

Permalink
FULLPIPE: Fix bug with unmovable jar in scene04
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 2, 2015
1 parent f4a9965 commit 76b71ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engines/fullpipe/scenes/scene04.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,8 @@ void sceneHandler04_springWobble() {

Common::Point point;

int oldpos = g_vars->scene04_spring->getCurrDimensions(point)->y - oldDynIndex;

if (g_vars->scene04_dynamicPhaseIndex) {
if (!g_vars->scene04_spring->_movement)
g_vars->scene04_spring->startAnim(MV_SPR_LOWER, 0, -1);
Expand All @@ -969,8 +971,9 @@ void sceneHandler04_springWobble() {
g_vars->scene04_spring->changeStatics2(ST_SPR_UP);
}

if (g_vars->scene04_dynamicPhaseIndex != oldDynIndex)
sceneHandler04_bottleUpdateObjects(oldDynIndex - g_vars->scene04_dynamicPhaseIndex);
if (g_vars->scene04_dynamicPhaseIndex != oldDynIndex) {
sceneHandler04_bottleUpdateObjects(oldpos - (g_vars->scene04_spring->getCurrDimensions(point)->y - g_vars->scene04_dynamicPhaseIndex));
}
}

void sceneHandler04_leaveScene() {
Expand Down

0 comments on commit 76b71ca

Please sign in to comment.