fix chime frequency

This commit is contained in:
Demur Rumed 2025-06-10 14:07:55 +00:00
commit 5d4c2749cd

View file

@ -505,8 +505,8 @@ void ActorAccessibility_GeneralHelper(PlayState* play) {
ActorAccessibility_PlaySound(nullptr, 0, NA_SE_EV_SHIP_BELL); ActorAccessibility_PlaySound(nullptr, 0, NA_SE_EV_SHIP_BELL);
ActorAccessibility_SetSoundPitch(nullptr, 0, 1.5f + Math_CosS(player->yaw) / 2); ActorAccessibility_SetSoundPitch(nullptr, 0, 1.5f + Math_CosS(player->yaw) / 2);
ActorAccessibility_SetSoundPan(nullptr, 0, -Math_SinS(player->yaw)); ActorAccessibility_SetSoundPan(nullptr, 0, -Math_SinS(player->yaw));
s16 range = ABS((player->yaw & 0x1FFF) - 0x1000); s16 range = ABS(((player->yaw + 0xA000) & 0x3FFF) - 0x2000);
aa->framesUntilChime = range < 0x800 ? 10 : range < 0x1000 ? 20 : 30; aa->framesUntilChime = range <= 0x400 ? 10 : range <= 0x1000 ? 20 : 30;
} }
} }