[nexuiz-commits] r8249 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Nov 8 12:48:03 EST 2009
Author: div0
Date: 2009-11-08 12:48:03 -0500 (Sun, 08 Nov 2009)
New Revision: 8249
Modified:
trunk/data/qcsrc/common/mathlib.qc
Log:
fix warning
Modified: trunk/data/qcsrc/common/mathlib.qc
===================================================================
--- trunk/data/qcsrc/common/mathlib.qc 2009-11-08 17:43:37 UTC (rev 8248)
+++ trunk/data/qcsrc/common/mathlib.qc 2009-11-08 17:48:03 UTC (rev 8249)
@@ -180,7 +180,7 @@
{
// TODO improve accuracy
if(!isfinite(x))
- return fabs(x);
+ return fabs(x) * '1 0 0' + copysign(1, x) * '0 1 0';
if(x < 1 && x == floor(x))
return nan("gamma") * '1 1 1';
if(x < 0.1)
More information about the nexuiz-commits
mailing list