some rename in code_8006e9c0 (#512)

* some basic function renames

* Renaming player hud related variables.
This commit is contained in:
coco875
2023-12-25 14:43:47 +01:00
committed by GitHub
parent 371516f918
commit 3638f19145
32 changed files with 793 additions and 861 deletions
+5 -5
View File
@@ -831,7 +831,7 @@ void func_80007D04(s32 playerId, Player *player) {
// Something wrong here. Maybe needs
// var_v0 = 0;
switch (gCCSelection) {
case 0:
case CC_50:
var_v0 = 0;
if (playerId == D_80163344[0]) {
var_v0 = 0x14;
@@ -3579,7 +3579,7 @@ void func_8000F124(void) {
}
if (gDemoMode == 1) { return; }
if (gModeSelection != 0) { return; }
if (gModeSelection != GRAND_PRIX) { return; }
for (i = 0; i < 2; i++) {
@@ -3716,7 +3716,7 @@ void func_8000F628(void) {
gLapCountByPlayerId[i] = -1;
gCourseCompletionPercentByPlayerId[i] = 0.0f;
gTimePlayerLastTouchedFinishLine[i] = 0.0f;
if (gModeSelection == 0) {
if (gModeSelection == GRAND_PRIX) {
if(1); if(1); // Maybe some debug code?
gGPCurrentRaceRankByPlayerId[i] = (s32) D_80165270[i];
D_801643E0[i] = (s32) D_80165270[i];
@@ -3808,7 +3808,7 @@ void func_8000F628(void) {
}
D_8016347A = 0;
if (gCCSelection == 3) {
if (gCCSelection == CC_EXTRA) {
D_8016347A = 1;
}
@@ -5176,7 +5176,7 @@ void func_800139E4(f32 arg0, f32 arg1, s32 arg2, s32 arg3, VehicleStuff *vehicle
veh->someType = random_int(3);
}
veh->someMultiplierTheSequel = (f32) ((f64) (f32) (veh->someType - 1) * 0.6);
if (((gCCSelection > 0) || (gModeSelection == 1)) && (veh->someType == 2)) {
if (((gCCSelection > CC_50) || (gModeSelection == TIME_TRIALS)) && (veh->someType == 2)) {
veh->someMultiplier = arg0;
} else {
veh->someMultiplier = arg1;