[nexuiz-commits] r7234 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jul 18 09:05:00 EDT 2009
Author: mrbougo
Date: 2009-07-18 09:05:00 -0400 (Sat, 18 Jul 2009)
New Revision: 7234
Modified:
trunk/data/qcsrc/client/waypointsprites.qc
Log:
fix waypoint display origins when out of vision... please confirm that checking if d_z == 0 is too rare to be necessary ?
Modified: trunk/data/qcsrc/client/waypointsprites.qc
===================================================================
--- trunk/data/qcsrc/client/waypointsprites.qc 2009-07-18 02:47:28 UTC (rev 7233)
+++ trunk/data/qcsrc/client/waypointsprites.qc 2009-07-18 13:05:00 UTC (rev 7234)
@@ -195,7 +195,7 @@
if(max(f1, -f1) > max(f2, -f2))
{
- if(f1 > 0)
+ if(d_z * f1 > 0)
{
// RIGHT edge
d = d * (0.5 / f1);
@@ -210,7 +210,7 @@
}
else
{
- if(f2 > 0)
+ if(d_z * f2 > 0)
{
// BOTTOM edge
d = d * (0.5 / f2);
More information about the nexuiz-commits
mailing list