mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
fix chime frequency
This commit is contained in:
parent
1acfbb633c
commit
5d4c2749cd
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue