]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use consistent names
authorSeverin Meyer <sev.ch@web.de>
Tue, 28 Jul 2015 19:54:54 +0000 (21:54 +0200)
committerSeverin Meyer <sev.ch@web.de>
Tue, 28 Jul 2015 19:54:54 +0000 (21:54 +0200)
qcsrc/client/hud.qc
qcsrc/common/nades.qh

index b960649b6d35284175cc5c5feef2a329b4a0a5d5..d8995c656fee4e97008aa3cabcdcaa79ae464add 100644 (file)
@@ -976,7 +976,7 @@ void DrawAmmoNades(vector myPos, vector mySize, bool draw_expanding, float expan
        float bonusProgress = getstatf(STAT_NADE_BONUS_SCORE);
        float bonusType     = getstati(STAT_NADE_BONUS_TYPE);
        vector nadeColor    = Nade_Color(bonusType);
-       string nadePic      = Nade_Pic(bonusType);
+       string nadeIcon     = Nade_Icon(bonusType);
 
        vector iconPos, textPos;
 
@@ -999,9 +999,9 @@ void DrawAmmoNades(vector myPos, vector mySize, bool draw_expanding, float expan
                        drawstring_aspect(textPos, ftos(bonusNades), eX * (2/3) * mySize.x + eY * mySize.y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
 
                if(draw_expanding)
-                       drawpic_aspect_skin_expanding(iconPos, nadePic, '1 1 0' * mySize.y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL, expand_time);
+                       drawpic_aspect_skin_expanding(iconPos, nadeIcon, '1 1 0' * mySize.y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL, expand_time);
 
-               drawpic_aspect_skin(iconPos, nadePic, '1 1 0' * mySize.y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
+               drawpic_aspect_skin(iconPos, nadeIcon, '1 1 0' * mySize.y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL);
        }
 }
 
index 7daca159d3a3db82da86e37e00411408e8e64a97..fe07101a3c311bc6038eb30b3372f762a7d949df 100644 (file)
@@ -47,7 +47,7 @@ vector Nade_Color(int nadeid)
        return '0 0 0';
 }
 
-string Nade_Pic(int nadeid)
+string Nade_Icon(int nadeid)
 {
        switch(nadeid)
        {