diff options
author | Chris Robinson <[email protected]> | 2014-11-29 02:06:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-11-29 02:06:08 -0800 |
commit | cf50f44f4d23f9c7d04815f41dada3357d568f2b (patch) | |
tree | c13211616efa7ec12ff0b85c76d6c5647f5b5d28 /Alc/ALu.c | |
parent | 6883619b14c5b86ff29a691e17d3a19ad550fadd (diff) |
Remove an unnecessary maxf()
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |