Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler09_limitHangerPhase()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 18, 2014
1 parent c998e83 commit eb4d269
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion engines/fullpipe/scenes/scene09.cpp
Expand Up @@ -332,7 +332,23 @@ void sceneHandler09_cycleHangers() {
}

void sceneHandler09_limitHangerPhase() {
warning("STUB: sceneHandler09_limitHangerPhase()");
for (int i = 0; i < g_vars->scene09_numMovingHangers; i++) {
if (i != g_vars_scene09_var10) {
g_vars_scene09_hangers[i]->phase += g_vars_scene09_hangers[i]->field_8;

if (g_vars_scene09_hangers[i]->phase > 85)
g_vars_scene09_hangers[i]->phase = 85;

if (g_vars_scene09_hangers[i]->phase < -85)
g_vars_scene09_hangers[i]->phase = -85;

if (g_vars_scene09_hangers[i]->phase < 0)
g_vars_scene09_hangers[i]->field_8++;

if (g_vars_scene09_hangers[i]->phase > 0)
g_vars_scene09_hangers[i]->field_8--;
}
}
}

void sceneHandler09_collideBall(Ball *ball) {
Expand Down

0 comments on commit eb4d269

Please sign in to comment.