]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename GeomLerp's lerp parameter (conflicts with a soon-to-be-added lib function)
authorMario <mario@smbclan.net>
Mon, 11 Jul 2016 12:47:00 +0000 (22:47 +1000)
committerMario <mario@smbclan.net>
Mon, 11 Jul 2016 12:47:39 +0000 (22:47 +1000)
qcsrc/common/physics/player.qc

index c0960125597e93d76cf17a8e60e05cf2a5cc52f8..8ab8a13800ffeb0b1da44c46488be78a736aa94f 100644 (file)
@@ -73,11 +73,11 @@ float IsMoveInDirection(vector mv, float ang) // key mix factor
        return ang > 1 ? 0 : ang < -1 ? 0 : 1 - fabs(ang);
 }
 
-float GeomLerp(float a, float lerp, float b)
+float GeomLerp(float a, float _lerp, float b)
 {
-       return a == 0 ? (lerp < 1 ? 0 : b)
-               : b == 0 ? (lerp > 0 ? 0 : a)
-               : a * pow(fabs(b / a), lerp);
+       return a == 0 ? (_lerp < 1 ? 0 : b)
+               : b == 0 ? (_lerp > 0 ? 0 : a)
+               : a * pow(fabs(b / a), _lerp);
 }
 
 #define unstick_offsets(X) \