aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-04 07:32:23 -0700
committerChris Robinson <[email protected]>2011-07-04 07:32:23 -0700
commitb2d5367830c7bc60e3593f3161eb1f65659a07ba (patch)
tree8ac29273d09a4ea9683fcf19115fc53783c61762 /Alc/ALu.c
parentd307ee8c2f0823f80b427766ace50243db0999d5 (diff)
Fix rolloff calculations for auxiliary sends
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index ebfd0817..ed2c7b3e 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -405,8 +405,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
AirAbsorptionFactor = ALSource->AirAbsorptionFactor;
for(i = 0;i < NumSends;i++)
{
- RoomRolloff[i] = ((i==0) ? ALSource->RoomRolloffFactor :
- RoomRolloff[i-1]);
+ RoomRolloff[i] = ALSource->RoomRolloffFactor;
if(ALSource->Send[i].Slot &&
(ALSource->Send[i].Slot->effect.type == AL_EFFECT_REVERB ||
ALSource->Send[i].Slot->effect.type == AL_EFFECT_EAXREVERB))