mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 22:28:10 +00:00
FULLPIPE: Implement sceneHandler09_limitHangerPhase()
This commit is contained in:
parent
c998e83eb3
commit
eb4d2695ee
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user