other fix

This commit is contained in:
coco875 2025-06-23 23:45:57 +02:00
parent 3d35bfb778
commit e2aaf7d126
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}