From: Mircea Kitsune Date: Thu, 24 Jun 2010 14:56:31 +0000 (+0300) Subject: Precache the texture only if the cvar is enabled. X-Git-Tag: xonotic-v0.1.0preview~501^2~1^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0bee18fba7f8d553cec0c03a399eff3a79d786e6;p=xonotic%2Fxonotic-data.pk3dir.git Precache the texture only if the cvar is enabled. --- diff --git a/qcsrc/client/View.qc b/qcsrc/client/View.qc index 172862375..555f70f7a 100644 --- a/qcsrc/client/View.qc +++ b/qcsrc/client/View.qc @@ -564,10 +564,12 @@ void CSQC_UpdateView(float w, float h) reticle_pos_x = (vid_conwidth - reticle_size_x) / 2; reticle_pos_y = (vid_conheight - reticle_size_y) / 2; - precache_pic("textures/reticle_nex"); if(cvar("cl_reticle_nex")) - if(zoom_type == 1) - drawpic(reticle_pos, "textures/reticle_nex", reticle_size, '1 1 1', current_zoomfraction * cvar("cl_reticle_nex"), DRAWFLAG_NORMAL); + { + precache_pic("textures/reticle_nex"); + if(zoom_type == 1) + drawpic(reticle_pos, "textures/reticle_nex", reticle_size, '1 1 1', current_zoomfraction * cvar("cl_reticle_nex"), DRAWFLAG_NORMAL); + } // Draw the mouse cursor // NOTE: drawpic must happen after R_RenderScene for some reason