summaryrefslogtreecommitdiff
path: root/src/code_800029B0.c
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2025-05-23 16:53:14 -0600
committerGitHub <noreply@github.com>2025-05-23 16:53:14 -0600
commit2a0c0939c780babc45c8c22dfd6f94563485bae5 (patch)
tree0a8f7d6a5a99452645260d53e778204327275deb /src/code_800029B0.c
parent9363e3d77631b1028a765c075a00293bd20c9ba7 (diff)
Refactor World::Courses to unique_ptr (#211)
* wip course unique ptr * Track unique_ptr : This probably compiles * Finish impl Courses as unique_ptr * Fix error * Fixes * More fixes * Cleanup * Remove old vars --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/code_800029B0.c')
-rw-r--r--src/code_800029B0.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/code_800029B0.c b/src/code_800029B0.c
index 73f104ed8..beba2e490 100644
--- a/src/code_800029B0.c
+++ b/src/code_800029B0.c
@@ -233,16 +233,18 @@ void setup_race(void) {
// D_8015F8D0[1] = (f32) (D_80164490->posY - 15);
// D_8015F8D0[2] = D_80164490->posZ;
- // if (GetCourse() == GetToadsTurnpike()) {
+ // if (IsToadsTurnpike()) {
// D_8015F8D0[0] = (gIsMirrorMode != 0) ? D_80164490->posX + 138.0f : D_80164490->posX - 138.0f;
- // } else if (GetCourse() == GetWarioStadium()) {
+ // } else if (IsWarioStadium()) {
// D_8015F8D0[0] = (gIsMirrorMode != 0) ? D_80164490->posX + 12.0f : D_80164490->posX - 12.0f;
// } else {
// D_8015F8D0[0] = D_80164490->posX;
// }
// }
if (!gDemoMode) {
- func_800CA008(gPlayerCountSelection1 - 1, gCurrentCourseId + 4);
+ //! @warning this used to be gCurrentCourseId + 4
+ // Hopefully this is equivallent.
+ func_800CA008(gPlayerCountSelection1 - 1, GetCourseIndex() + 4);
func_800CB2C4();
}