Add the reverb room rolloff to the source room rolloff, not override

This commit is contained in:
Chris Robinson
2008-07-15 02:23:53 -07:00
parent 97d3a45aff
commit 6d416ee734
+1 -1
View File
@@ -317,7 +317,7 @@ static ALvoid CalcSourceParams(ALCcontext *ALContext, ALsource *ALSource,
if(ALSource->Send[0].Slot && !ALSource->Send[0].Slot->AuxSendAuto)
{
if(ALSource->Send[0].Slot->effect.type == AL_EFFECT_REVERB)
RoomRolloff = ALSource->Send[0].Slot->effect.Reverb.RoomRolloffFactor;
RoomRolloff += ALSource->Send[0].Slot->effect.Reverb.RoomRolloffFactor;
}
flAttenuation = 1.0f;