]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Draw it before the HUD
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Jun 2010 16:29:57 +0000 (19:29 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 15 Jun 2010 16:29:57 +0000 (19:29 +0300)
qcsrc/client/View.qc

index 819fa4d24f226e71c1729a6c93e1c54030a6feeb..2826bbc4298525cdaecc1acddec1c8e5aed19df1 100644 (file)
@@ -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)