]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Why wasn't this done in the first place, instead of blaming the compiler...
authorMario <zacjardine@y7mail.com>
Sat, 24 Jan 2015 10:13:34 +0000 (21:13 +1100)
committerMario <zacjardine@y7mail.com>
Sat, 24 Jan 2015 10:13:34 +0000 (21:13 +1100)
qcsrc/client/hud.qc

index 23751b275e5c7696f65a0d03effa315f8267caac..58693cd7efcdbfa69d107bdd67dfad477c3449d3 100644 (file)
@@ -433,7 +433,6 @@ void HUD_Weapons(void)
        float fadetime = max(0, autocvar_hud_panel_weapons_complainbubble_fadetime);
 
        vector weapon_pos, weapon_size = '0 0 0';
-       local noref vector max_panel_size; // fteqcc sucks
        vector color;
 
        // check to see if we want to continue
@@ -519,7 +518,7 @@ void HUD_Weapons(void)
                        return;
                }
 
-               max_panel_size = panel_size - '2 2 0' * panel_bg_padding;
+               vector max_panel_size = panel_size - '2 2 0' * panel_bg_padding;
 
                // calculate distribution and size of table cells
                if(max_panel_size_x > max_panel_size_y)