[nexuiz-commits] r6199 - trunk/data/qcsrc/common
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Mar 17 07:14:25 EDT 2009
Author: div0
Date: 2009-03-17 07:14:25 -0400 (Tue, 17 Mar 2009)
New Revision: 6199
Modified:
trunk/data/qcsrc/common/util.qc
Log:
fix the D < 0 case
Modified: trunk/data/qcsrc/common/util.qc
===================================================================
--- trunk/data/qcsrc/common/util.qc 2009-03-17 09:45:46 UTC (rev 6198)
+++ trunk/data/qcsrc/common/util.qc 2009-03-17 11:14:25 UTC (rev 6199)
@@ -1602,6 +1602,7 @@
else
{
// complex solutions!
+ D = sqrt(-D);
v_x = -b / (2*a);
if(a > 0)
v_y = D / (2*a);
More information about the nexuiz-commits
mailing list