diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-12-16 17:55:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-16 09:55:37 -0700 |
| commit | 1a5c79b641517e38d6a2925ba1f332dffdafc1e8 (patch) | |
| tree | 5c9e0844e2839651cd89c9134e9e725e02680160 /src/audio | |
| parent | 6b8be33a5bc5f26c425095d8c3d0b9caa7e91ae6 (diff) | |
Player bitflag attributes (pr 750 from the decomp) (#592)
* Player bitflag attributes (pr 750 from the decomp)
Co-Authored-By: Jed Grabman <JedGrabman@users.noreply.github.com>
* remove WATER_NO_INTERACTION
---------
Co-authored-by: Jed Grabman <JedGrabman@users.noreply.github.com>
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to 'src/audio')
| -rw-r--r-- | src/audio/external.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/audio/external.c b/src/audio/external.c index 99848cb6c..7aca5e550 100644 --- a/src/audio/external.c +++ b/src/audio/external.c @@ -595,7 +595,7 @@ void func_800C2474(void) { gPlayers[var_v0].unk_20C = 0.0f; gPlayers[var_v0].unk_0C0 = 0; gPlayers[var_v0].unk_098 = 0.0f; - gPlayers[var_v0].waterInteractionFlags = WATER_NO_INTERACTION; + gPlayers[var_v0].oobProps = 0; D_8018FC10[var_v0][0] = 0x00FF; D_8018FC10[var_v0][1] = 0; D_800EA10C[var_v0] = 0; @@ -1835,7 +1835,7 @@ void func_800C5CB8(void) { } void func_800C5D04(u8 playerId) { - if ((gPlayers[playerId].unk_044 & 0x20) == 0x20) { + if ((gPlayers[playerId].kartProps & THROTTLE) == THROTTLE) { D_800E9E34[playerId] = 0; if (D_800E9E24[playerId] < 0x4E20) { if ((u8) D_800EA16C == 0) { @@ -1864,7 +1864,7 @@ void func_800C5D04(u8 playerId) { void func_800C5E38(u8 playerId) { if (D_800EA108 == 0) { - if (((gPlayers[playerId].unk_044 & 0x20) != 0x20) && (gPlayers[playerId].unk_098 > 400.0f)) { + if (((gPlayers[playerId].kartProps & THROTTLE) != THROTTLE) && (gPlayers[playerId].unk_098 > 400.0f)) { D_800E9E14[playerId] = 1; if (D_800EA0EC[playerId] == 0) { D_800E9F7C[playerId].unk_10 = 0.6f - D_800E9F54[playerId]; @@ -1916,7 +1916,7 @@ void func_800C6108(u8 playerId) { player = &gPlayers[playerId]; D_800E9E64[playerId] = (player->unk_098 / D_800E9DC4[playerId]) + D_800E9DD4[playerId]; - if ((player->unk_098 < 1800.0f) && ((player->unk_044 & 0x20) != 0x20)) { + if ((player->unk_098 < 1800.0f) && ((player->kartProps & THROTTLE) != THROTTLE)) { D_800E9E64[playerId] = (player->unk_098 / D_800E9F7C[playerId].unk_34) + D_800E9F7C[playerId].unk_28; if (D_800E9EC4) {} // ? } @@ -2014,7 +2014,7 @@ void func_800C64A0(u8 playerId) { if (D_800E9EF4[playerId] < 0.0f) { D_800E9EF4[playerId] = 0.0f; } - if ((gPlayers[playerId].unk_044 & 0x20) == 0x20) { + if ((gPlayers[playerId].kartProps & THROTTLE) == THROTTLE) { D_800E9F04[playerId] = 0.56f - (D_800E9E24[playerId] * 0.06f); } else { D_800E9F04[playerId] = (D_800E9E34[playerId] / 50.0f) + 0.25f; @@ -2390,12 +2390,12 @@ void func_800C70A8(u8 playerId) { (D_800E9E74[playerId] != 0x0000001C)) { D_800E9E74[playerId] = 0; } - if ((((gPlayers[playerId].effects & 0x4000) == 0x4000) && ((gPlayers[playerId].type & 0x2000) != 0x2000)) || + if ((((gPlayers[playerId].effects & 0x4000) == 0x4000) && ((gPlayers[playerId].type & PLAYER_START_SEQUENCE) != PLAYER_START_SEQUENCE)) || ((gPlayers[playerId].effects & 0x800) == 0x800) || ((gPlayers[playerId].effects & 0x80) == 0x80) || - ((gPlayers[playerId].effects & 0x40) == 0x40) || ((gPlayers[playerId].unk_044 & 0x4000) == 0x4000)) { + ((gPlayers[playerId].effects & 0x40) == 0x40) || ((gPlayers[playerId].kartProps & DRIVING_SPINOUT) == DRIVING_SPINOUT)) { D_800E9E74[playerId] = 0x00000012; } - if ((((gPlayers[playerId].effects & 0x20) == 0x20) && ((gPlayers[playerId].type & 0x2000) != 0x2000)) || + if ((((gPlayers[playerId].effects & 0x20) == 0x20) && ((gPlayers[playerId].type & PLAYER_START_SEQUENCE) != PLAYER_START_SEQUENCE)) || ((gPlayers[playerId].effects & 0x800) == 0x800)) { D_800E9E74[playerId] = 0x00000013; } @@ -2686,7 +2686,7 @@ void func_800C76C0(u8 playerId) { } void func_800C847C(u8 playerId) { - if ((gPlayers[playerId].waterInteractionFlags & WATER_IS_FULLY_SUBMERGED) == WATER_IS_FULLY_SUBMERGED) { + if ((gPlayers[playerId].oobProps & UNDER_OOB_OR_FLUID_LEVEL) == UNDER_OOB_OR_FLUID_LEVEL) { if (D_800E9F74[playerId] == 0) { if ((s32) D_800EA1C0 < 2) { func_800C9018(playerId, SOUND_ARG_LOAD(0x01, 0x00, 0xF9, 0x26)); |
