FULLPIPE: Implement sceneHandler09_limitHangerPhase()

This commit is contained in:
Eugene Sandulenko 2014-02-18 20:56:37 +02:00
parent c998e83eb3
commit eb4d2695ee

View File

@ -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) {