Setup Track Properties 1

This commit is contained in:
MegaMech
2025-03-14 12:52:21 -06:00
parent 3ab8fe0d71
commit 3b343e3676
33 changed files with 167 additions and 131 deletions
+3 -7
View File
@@ -2740,13 +2740,9 @@ void set_minimap_finishline_position(s32 arg0) {
// minimap center pos - minimap left edge + offset
var_f2 = (center - (gMinimapWidth / 2)) + D_8018D2E0;
var_f0 = (D_8018D2D8[arg0] - (gMinimapHeight / 2)) + D_8018D2E8;
if (GetCourse() == GetMarioRaceway()) {
var_f0 = var_f0 - 2.0;
} else if (GetCourse() == GetChocoMountain()) {
var_f0 = var_f0 - 16.0;
} else if (GetCourse() == GetKalimariDesert()) {
var_f0 = var_f0 + 4.0;
}
var_f2 += CM_GetProps()->MinimapFinishlineX;
var_f0 += CM_GetProps()->MinimapFinishlineY;
//! @todo Get course minimap props from course.
CM_MinimapFinishlinePosition();