diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-06-19 22:26:04 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 16:26:04 -0600 |
| commit | 5d7cf20c83bf49e6b27f07684535727506526012 (patch) | |
| tree | d5a02b39520ff255f4b1ffc557be5026d481427c /src/render_objects.c | |
| parent | 602141fb11e2614583caa23b250ca115ce451c99 (diff) | |
pr Code 80005fd0 (#181)
* fix error
* a lot of change
* basic rename of local variable
* continue rename and improve Enhancements
* re-apply change
* revert the remove of dma_texture and fix mtxf_multiplication
* more documentation port
* some fix
* more fix
* fix arround
* Update torch
* fix spelling
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/render_objects.c')
| -rw-r--r-- | src/render_objects.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render_objects.c b/src/render_objects.c index e0097750e..79cc65f63 100644 --- a/src/render_objects.c +++ b/src/render_objects.c @@ -2838,13 +2838,13 @@ void func_8004F3E4(s32 arg0) { case GRAND_PRIX: for (idx = D_8018D158 - 1; idx >= 0; idx--) { playerId = gGPCurrentRacePlayerIdByRank[idx]; - if ((gPlayerOne + playerId)->type & PLAYER_KART_AI) { + if ((gPlayerOne + playerId)->type & PLAYER_CPU) { func_8004F168(arg0, playerId, 8); } } for (idx = D_8018D158 - 1; idx >= 0; idx--) { playerId = gGPCurrentRacePlayerIdByRank[idx]; - if (((gPlayerOne + playerId)->type & PLAYER_KART_AI) != PLAYER_KART_AI) { + if (((gPlayerOne + playerId)->type & PLAYER_CPU) != PLAYER_CPU) { func_8004F168(arg0, playerId, (gPlayerOne + playerId)->characterId); } } @@ -3162,7 +3162,7 @@ void func_800507D8(u16 bombIndex, s32* arg1, s32* arg2) { s32 var_v1 = 0; if (temp_v0 != 0) { - var_v1 = (s32) (temp_v0 * 0x3A0) / (s32) D_80164430; + var_v1 = (s32) (temp_v0 * 0x3A0) / (s32) gSelectedPathCount; } if (var_v1 < 0x104) { *arg1 = var_v1; @@ -3393,7 +3393,7 @@ void func_800514BC(void) { } } if (gModeSelection == 1) { - func_80050E34(0, D_80164408[0]); + func_80050E34(0, gGPCurrentRaceRankByPlayerIdDup[0]); } else if (gPlayerCountSelection1 == 1) { func_80050E34(0, gGPCurrentRaceRankByPlayerId[0]); } |
