Fix rolloff calculations for auxiliary sends

This commit is contained in:
Chris Robinson 2011-07-04 07:32:23 -07:00
parent d307ee8c2f
commit b2d5367830

View File

@ -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))