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:
Ethan Lafrenais
2022-06-26 20:45:55 -04:00
committed by GitHub
parent e630b50690
commit 944edd5938
+1 -1
View File
@@ -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;