From 0bee18fba7f8d553cec0c03a399eff3a79d786e6 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 24 Jun 2010 17:56:31 +0300 Subject: [PATCH] Precache the texture only if the cvar is enabled. --- qcsrc/client/View.qc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.2