Add zoomfraction check back, to avoid drawpic at 0 alpha.
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 Jun 2010 15:25:10 +0000 (18:25 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 Jun 2010 15:25:10 +0000 (18:25 +0300)
qcsrc/client/View.qc

index ac2051797e1cdbd4ba88946cb8ddbc428fea350e..8d283b106b1718faa929cdf232a58b409ab7962c 100644 (file)
@@ -569,7 +569,7 @@ void CSQC_UpdateView(float w, float h)
        if(cvar("cl_reticle_nex"))
        {
                precache_pic("textures/reticle_nex");
-               if(reticle_type == 1)
+               if(reticle_type == 1 && current_zoomfraction)
                        drawpic(reticle_pos, "textures/reticle_nex", reticle_size, '1 1 1', current_zoomfraction * cvar("cl_reticle_nex"), DRAWFLAG_NORMAL);
        }