[nexuiz-commits] r6943 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jun 9 08:44:50 EDT 2009
Author: div0
Date: 2009-06-09 08:44:50 -0400 (Tue, 09 Jun 2009)
New Revision: 6943
Modified:
trunk/data/qcsrc/client/View.qc
Log:
make csqc slightly faster
Modified: trunk/data/qcsrc/client/View.qc
===================================================================
--- trunk/data/qcsrc/client/View.qc 2009-06-09 12:17:28 UTC (rev 6942)
+++ trunk/data/qcsrc/client/View.qc 2009-06-09 12:44:50 UTC (rev 6943)
@@ -497,7 +497,10 @@
// TrueAim check
float goodshot;
- goodshot = TrueAimCheck();
+ if(cvar("crosshair_hittest"))
+ goodshot = TrueAimCheck();
+ else
+ goodshot = TRUE;
string wcross_style;
wcross_style = cvar_string("crosshair");
@@ -539,7 +542,7 @@
wcross_size_x *= wcross_sizefloat;
wcross_size_y *= wcross_sizefloat;
- if(goodshot || !cvar("crosshair_hittest"))
+ if(goodshot)
{
drawpic('0.5 0 0' * (vid_conwidth - wcross_size_x) + '0 0.5 0' * (vid_conheight - wcross_size_y), wcross_name, wcross_size, wcross_color, wcross_alpha, DRAWFLAG_NORMAL);
}
More information about the nexuiz-commits
mailing list