From: Mircea Kitsune Date: Tue, 15 Jun 2010 16:29:57 +0000 (+0300) Subject: Draw it before the HUD X-Git-Tag: xonotic-v0.1.0preview~501^2~1^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dd0a78e0c09c46da51e3e92cfd1eba0e95c5728b;p=xonotic%2Fxonotic-data.pk3dir.git Draw it before the HUD --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 819fa4d24..2826bbc42 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -578,6 +578,16 @@ void CSQC_UpdateView(float w, float h) self.draw2d(); self = e; + // draw the aiming reticle for weapons that use it (eg. Nex) + recticle_pos_x = 0; + recticle_pos_y = 0; + recticle_size_x = vid_conwidth; + recticle_size_y = vid_conheight; + + if(cvar("cl_recticle_nex")) + if(button_attack2 && activeweapon == WEP_NEX) + drawpic(recticle_pos, "textures/reticle_nex", recticle_size, '1 1 1', cvar("cl_recticle_nex"), DRAWFLAG_NORMAL); + // draw radar if( ons_showmap @@ -829,16 +839,6 @@ void CSQC_UpdateView(float w, float h) wcross_resolution_goal_prev = 0; wcross_resolution_goal_prev_prev = 0; } - - // draw the aiming reticle for weapons that use zoom for alt fire (eg. nex) - recticle_pos_x = 0; - recticle_pos_y = 0; - recticle_size_x = vid_conwidth; - recticle_size_y = vid_conheight; - - if(cvar("cl_recticle_nex")) - if(button_attack2 && activeweapon == WEP_NEX) - drawpic(recticle_pos, "textures/reticle_nex", recticle_size, '1 1 1', cvar("cl_recticle_nex"), DRAWFLAG_NORMAL); } if(NextFrameCommand)