]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Call it reticle_type instead, in case the system might be used for other weapons...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 Jun 2010 15:00:55 +0000 (18:00 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 Jun 2010 15:00:55 +0000 (18:00 +0300)
qcsrc/client/View.qc

index 555f70f7ad0a234e796f70b1fcf0a25f14f10462..e363e893e65a5d8fc72b2b57d1b9f62df97f6305 100644 (file)
@@ -341,7 +341,7 @@ void CSQC_Demo_Camera();
 float HUD_WouldDrawScoreboard ();
 float view_set;
 float camera_mode;
-float zoom_type;
+float reticle_type;
 string NextFrameCommand;
 void CSQC_SPIDER_HUD();
 void CSQC_RAPTOR_HUD();
@@ -553,11 +553,11 @@ void CSQC_UpdateView(float w, float h)
        drawstring('0 0 0', "", '1 1 0', '1 1 1', 0, 0);
 
        // draw the aiming reticle for weapons that use it (eg. Nex)
-       // zoom_type is changed to the item we are zooming with, to decide which reticle to use
+       // reticle_type is changed to the item we are zooming or aiming with, to decide which reticle to use
        if(button_zoom)
-               zoom_type = 0; // normal zoom
+               reticle_type = 0; // normal zoom
        else if(activeweapon == WEP_NEX && button_attack2)
-               zoom_type = 1; // nex zoom
+               reticle_type = 1; // nex zoom
 
        reticle_size_x = max(vid_conwidth, vid_conheight);
        reticle_size_y = max(vid_conwidth, vid_conheight);
@@ -567,7 +567,7 @@ void CSQC_UpdateView(float w, float h)
        if(cvar("cl_reticle_nex"))
        {
                precache_pic("textures/reticle_nex");
-               if(zoom_type == 1)
+               if(reticle_type == 1)
                        drawpic(reticle_pos, "textures/reticle_nex", reticle_size, '1 1 1', current_zoomfraction * cvar("cl_reticle_nex"), DRAWFLAG_NORMAL);
        }