mirror of
https://github.com/open-goal/jak-project
synced 2026-07-11 15:28:58 -04:00
Fix volume calculation when falloff curve is zero (#1562)
Return passed volume instead of zero when falloff curve is 0
This commit is contained in:
@@ -216,7 +216,7 @@ Sound* AllocateSound() {
|
||||
|
||||
s32 CalculateFallofVolume(Vec3w* pos, s32 volume, s32 fo_curve, s32 fo_min, s32 fo_max) {
|
||||
if (fo_curve == 0) {
|
||||
return 0;
|
||||
return volume;
|
||||
}
|
||||
|
||||
s32 xdiff = gEarTrans.x - pos->x;
|
||||
|
||||
Reference in New Issue
Block a user