diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2024-04-06 19:35:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-06 11:35:13 -0600 |
| commit | 2b66867af1975759dc7acfb3bbc2c9063ffa4353 (patch) | |
| tree | bf8da88f60fc335b9b0529e6ade2f1676e3da610 /src/update_objects.c | |
| parent | c4d596d297182d81488c7d09769666de450140bb (diff) | |
Rename cpu behaviour related symbols (#586)
* Rename cpu related symbols
Diffstat (limited to 'src/update_objects.c')
| -rw-r--r-- | src/update_objects.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/update_objects.c b/src/update_objects.c index d11747c04..3fc0503f4 100644 --- a/src/update_objects.c +++ b/src/update_objects.c @@ -190,7 +190,7 @@ void func_80072120(s32 *arg0, s32 arg1) { void func_80072180(void) { if (gModeSelection == TIME_TRIALS) { if (((gPlayerOne->type & PLAYER_EXISTS) != 0) && - ((gPlayerOne->type & (PLAYER_INVISIBLE_OR_BOMB | PLAYER_CPU)) == 0)) { + ((gPlayerOne->type & (PLAYER_INVISIBLE_OR_BOMB | PLAYER_KART_AI)) == 0)) { D_80162DF8 = 1; } } @@ -3638,7 +3638,7 @@ u8 gen_random_item(s16 rank, s16 isCpu) curve = segmented_to_virtual((void *) common_grand_prix_human_item_curve); } else { - curve = segmented_to_virtual((void *) common_grand_prix_cpu_item_curve); + curve = segmented_to_virtual((void *) common_grand_prix_kart_ai_item_curve); } randomItem = *((rank * 100) + curve + sRandomItemIndex); } @@ -3649,7 +3649,7 @@ u8 gen_random_item_human(UNUSED s16 arg0, s16 rank) { return gen_random_item(rank, FALSE); } -u8 gen_random_item_cpu(UNUSED s32 arg0, s16 rank) { +u8 kart_ai_gen_random_item(UNUSED s32 arg0, s16 rank) { return gen_random_item(rank, TRUE); } @@ -5469,7 +5469,7 @@ void func_8007F8D8(void) { } if (var_s4 != 0) { for (var_s0 = 0; var_s0 < 4; var_s0++, player++){ - if ((player->type & PLAYER_EXISTS) && !(player->type & PLAYER_CPU)) { + if ((player->type & PLAYER_EXISTS) && !(player->type & PLAYER_KART_AI)) { if (func_8007F75C(var_s0) != 0) break; } } |
