From e2aaf7d12601a6a556a443fd00bf195e4dfa0244 Mon Sep 17 00:00:00 2001 From: coco875 Date: Mon, 23 Jun 2025 23:45:57 +0200 Subject: [PATCH] other fix --- src/cpu_vehicles_camera_path.c | 4 ++-- src/cpu_vehicles_camera_path/behaviour_utils.inc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpu_vehicles_camera_path.c b/src/cpu_vehicles_camera_path.c index 83d32524a..46421d7cf 100644 --- a/src/cpu_vehicles_camera_path.c +++ b/src/cpu_vehicles_camera_path.c @@ -1565,7 +1565,7 @@ void update_player(s32 playerId) { return; } if ((D_801630E8[playerId] == 1) || (D_801630E8[playerId] == -1)) { - player->effects |= UNKNOWN_EFFECT_0x10; + player->effects |= DRIFTING_EFFECT; } if (D_801630E8[playerId] != 0) { sPlayerAngle[playerId] = -get_angle_between_points(player->oldPos, player->pos); @@ -1772,7 +1772,7 @@ void func_8000B140(s32 playerId) { Player* player; player = &gPlayers[playerId]; - if (player->effects & UNKNOWN_EFFECT_0x10) { + if (player->effects & DRIFTING_EFFECT) { return; } diff --git a/src/cpu_vehicles_camera_path/behaviour_utils.inc.c b/src/cpu_vehicles_camera_path/behaviour_utils.inc.c index 1851bbb52..044b9c77b 100644 --- a/src/cpu_vehicles_camera_path/behaviour_utils.inc.c +++ b/src/cpu_vehicles_camera_path/behaviour_utils.inc.c @@ -144,7 +144,7 @@ void func_80011EC0(s32 playerIndex, Player* player, s32 arg2, UNUSED u16 arg3) { if ((arg2 >= -9) && (D_80162FF8[playerIndex] == 0)) { if ((gTrackPositionFactor[playerIndex] > -0.8) && (gTrackPositionFactor[playerIndex] < 0.5)) { kart_hop(player); - player->effects |= UNKNOWN_EFFECT_0x10; + player->effects |= DRIFTING_EFFECT; D_801630E8[playerIndex] = 1; break; } @@ -156,7 +156,7 @@ void func_80011EC0(s32 playerIndex, Player* player, s32 arg2, UNUSED u16 arg3) { if ((arg2 < 0xA) && (D_80162FF8[playerIndex] == 0)) { if ((gTrackPositionFactor[playerIndex] > -0.5) && (gTrackPositionFactor[playerIndex] < 0.8)) { kart_hop(player); - player->effects |= UNKNOWN_EFFECT_0x10; + player->effects |= DRIFTING_EFFECT; D_801630E8[playerIndex] = -1; break; }