]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix hud_panel_weapons_noncurrent_scale 0 acting as if it were 1 321/head
authorterencehill <piuntn@gmail.com>
Thu, 19 May 2016 20:31:21 +0000 (22:31 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 19 May 2016 20:31:21 +0000 (22:31 +0200)
qcsrc/client/hud/panel/weapons.qc

index 4447ccde0ef57cfa374eb26faf9aea6a05527977..ab9c9e24ca0503791ba868edbc3eecbeac40990f 100644 (file)
@@ -350,7 +350,7 @@ void HUD_Weapons()
        // draw items
        row = column = 0;
        vector label_size = '1 1 0' * min(weapon_size.x, weapon_size.y) * bound(0, autocvar_hud_panel_weapons_label_scale, 1);
-       vector noncurrent_size = weapon_size * bound(0, autocvar_hud_panel_weapons_noncurrent_scale, 1);
+       vector noncurrent_size = weapon_size * bound(0.01, autocvar_hud_panel_weapons_noncurrent_scale, 1);
        float noncurrent_alpha = panel_fg_alpha * bound(0, autocvar_hud_panel_weapons_noncurrent_alpha, 1);
        bool isCurrent;
        static vector weapon_pos_current = '-1 0 0';