From 4e51b7d5b6a9b89deb5ef135deec0ee5f0087e7c Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Sat, 13 Dec 2025 20:08:59 +0100 Subject: Document sound effects (pr 735 from the decomp) (#589) Co-authored-by: Jed Grabman Co-authored-by: MegaMech --- src/engine/objects/Thwomp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine/objects/Thwomp.cpp') diff --git a/src/engine/objects/Thwomp.cpp b/src/engine/objects/Thwomp.cpp index b658b50ff..4a699c217 100644 --- a/src/engine/objects/Thwomp.cpp +++ b/src/engine/objects/Thwomp.cpp @@ -644,7 +644,7 @@ void OThwomp::func_80080B28(s32 objectIndex, s32 playerId) { player = &gPlayerOne[playerId]; if (is_obj_flag_status_active(objectIndex, 0x00000200) != 0) { - if (!(player->soundEffects & 0x100)) { + if (!(player->triggers & THWOMP_SQUISH_TRIGGER)) { temp_f0 = func_80088F54(objectIndex, player); if ((temp_f0 <= 9.0) && !(player->effects & 0x04000000) && (has_collided_horizontally_with_player(objectIndex, player) != 0)) { @@ -675,7 +675,7 @@ void OThwomp::func_80080B28(s32 objectIndex, s32 playerId) { func_800722A4(objectIndex, 2); player->unk_040 = (s16) objectIndex; player->unk_046 |= 2; - player->soundEffects |= 0x100; + player->triggers |= THWOMP_SQUISH_TRIGGER; reset_player_speed_and_velocity(player); } } @@ -816,7 +816,7 @@ void OThwomp::func_80080DE4(s32 arg0) { player = gPlayerOne; for (var_v1 = 0; var_v1 < NUM_PLAYERS; var_v1++, player++) { if (arg0 == player->unk_040) { - player->soundEffects &= ~0x100; + player->triggers &= ~THWOMP_SQUISH_TRIGGER; player->unk_040 = -1; } } -- cgit v1.2.3