aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-29 02:06:08 -0800
committerChris Robinson <[email protected]>2014-11-29 02:06:08 -0800
commitcf50f44f4d23f9c7d04815f41dada3357d568f2b (patch)
treec13211616efa7ec12ff0b85c76d6c5647f5b5d28 /Alc/ALu.c
parent6883619b14c5b86ff29a691e17d3a19ad550fadd (diff)
Remove an unnecessary maxf()
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index e11be3a2..826e7b3a 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -887,7 +887,7 @@ ALvoid CalcSourceParams(ALvoice *voice, const ALsource *ALSource, const ALCconte
/* Distance-based air absorption */
if(AirAbsorptionFactor > 0.0f && ClampedDist > MinDist)
{
- ALfloat meters = maxf(ClampedDist-MinDist, 0.0f) * MetersPerUnit;
+ ALfloat meters = (ClampedDist-MinDist) * MetersPerUnit;
DryGainHF *= powf(AIRABSORBGAINHF, AirAbsorptionFactor*meters);
for(i = 0;i < NumSends;i++)
WetGainHF[i] *= powf(RoomAirAbsorption[i], AirAbsorptionFactor*meters);