diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-23 16:36:17 -0600 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-23 16:36:17 -0600 |
| commit | a8c2a804380dcf94ee98b2985fc8837bba148914 (patch) | |
| tree | 11df1327a6ee50bf7b71b4f0268d0ec0afca40e2 /src/code_80005FD0.c | |
| parent | d68dc0ec1262165e174ab80bd80ff7e995f41c72 (diff) | |
Fixes
Diffstat (limited to 'src/code_80005FD0.c')
| -rw-r--r-- | src/code_80005FD0.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/code_80005FD0.c b/src/code_80005FD0.c index b5166e468..3f8a0b1fc 100644 --- a/src/code_80005FD0.c +++ b/src/code_80005FD0.c @@ -3934,7 +3934,7 @@ s32 func_80011014(TrackWaypoint* pathDest, TrackWaypoint* path, s32 numPathPoint var_s0 = 0; temp_f20 = (f32) path[0].posX; temp_f22 = (f32) path[0].posZ; - var_f28 = func_80010F40(temp_f20, 2000.0f, temp_f22, gCurrentCourseId, 0); + var_f28 = func_80010F40(temp_f20, 2000.0f, temp_f22, 0, 0); for (i = 0; i < numPathPoints; i++) { point1 = &path[i % numPathPoints]; @@ -3969,10 +3969,10 @@ s32 func_80011014(TrackWaypoint* pathDest, TrackWaypoint* path, s32 numPathPoint if (gIsMirrorMode) { // temp_f12 = -temp_f24_2; pathDest->posX = (s16) -temp_f24_2; - var_f20_2 = func_80010FA0(-temp_f24_2, var_f28, x1_2, gCurrentCourseId, var_s0); + var_f20_2 = func_80010FA0(-temp_f24_2, var_f28, x1_2, 0, var_s0); } else { pathDest->posX = (s16) temp_f24_2; - var_f20_2 = func_80010FA0(temp_f24_2, var_f28, x1_2, gCurrentCourseId, var_s0); + var_f20_2 = func_80010FA0(temp_f24_2, var_f28, x1_2, 0, var_s0); } pathDest->posZ = (s16) temp_f22; @@ -5892,8 +5892,7 @@ void func_80017054(Camera* camera, UNUSED Player* player, UNUSED s32 index, s32 D_80163238 = playerId; sp56 = gNearestWaypointByCameraId[cameraId]; gNearestWaypointByCameraId[cameraId] = func_8000D33C(camera->pos[0], camera->pos[1], camera->pos[2], gNearestWaypointByCameraId[cameraId], pathIndex); - // if (IsYoshiValley()) { - if (gCurrentCourseId == 4) { + if (IsYoshiValley()) { if ((sp56 != gNearestWaypointByCameraId[cameraId]) && (gNearestWaypointByCameraId[cameraId] == 1)) { pathIndex = (D_80163DD8[cameraId] = random_int(4U)); gNearestWaypointByCameraId[cameraId] = func_8000D33C(camera->pos[0], camera->pos[1], camera->pos[2], gNearestWaypointByCameraId[cameraId], pathIndex); |
