]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/warpzone/mathlib.qc
Tighten the maths around the new pow replacements
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / warpzone / mathlib.qc
index 816a7ec6e761aa91f774a5ea8406e45b1a5775ae..acbc1c61d4dda0f69cb0d256467f16bc2808cb07 100644 (file)
@@ -122,7 +122,7 @@ float scalbn(float e, int n)
 
 float cbrt(float e)
 {
-       return copysign((fabs(e) ** 1.0/3.0), e);
+       return copysign((fabs(e) ** (1.0/3.0)), e);
 }
 float hypot(float e, float f)
 {