Skip to content

Commit

Permalink
FULLPIPE: Fix tube logic on scene37
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Oct 2, 2016
1 parent 454f20b commit e2325f0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions engines/fullpipe/scenes/scene37.cpp
Expand Up @@ -177,12 +177,19 @@ void sceneHandler37_updateRing(int ringNum) {

g_vars->scene37_pipeIsOpen = true;

for (uint j = 0; j < g_vars->scene37_rings.size(); j++) {
for (int i = 0; i < g_vars->scene37_rings[j]->numSubRings; i++) {
ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_RING, g_vars->scene37_rings[j]->subRings[i]);
for (uint i = 0; i < g_vars->scene37_rings.size(); i++) {
for (int j = 0; j < g_vars->scene37_rings[i]->numSubRings; j++) {
ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_RING, g_vars->scene37_rings[i]->subRings[j]);

if ((ani->_movement && ani->_movement->_id == MV_RNG_CLOSE) || ani->_statics->_staticsId == ST_RNG_CLOSED2)
g_vars->scene37_pipeIsOpen = false;
debugC(2, kDebugSceneLogic, "ring[%d][%d]: mov: %d st: %d", i, j, (ani->_movement ? ani->_movement->_id : 0), ani->_statics->_staticsId);

if (ani->_movement) {
if (ani->_movement->_id == MV_RNG_CLOSE)
g_vars->scene37_pipeIsOpen = false;
} else {
if (ani->_statics->_staticsId == ST_RNG_CLOSED2)
g_vars->scene37_pipeIsOpen = false;
}
}
}

Expand Down

0 comments on commit e2325f0

Please sign in to comment.