From 93ef491e60bfaaf3c9e8322e4563206691326c3b Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 9 Jun 2009 12:44:50 +0000 Subject: [PATCH] make csqc slightly faster git-svn-id: svn://svn.icculus.org/nexuiz/trunk@6943 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/client/View.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/client/View.qc b/data/qcsrc/client/View.qc index b0fdb81a4..a0c8bb928 100644 --- a/data/qcsrc/client/View.qc +++ b/data/qcsrc/client/View.qc @@ -497,7 +497,10 @@ void CSQC_UpdateView(float w, float h) // 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 @@ void CSQC_UpdateView(float w, float h) 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); } -- 2.39.2