From: terencehill Date: Sat, 7 Feb 2015 19:07:50 +0000 (+0100) Subject: Improve weapon icon distribution X-Git-Tag: xonotic-v0.8.1~106^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dc647e251ac9cce3239475da19cf24cfdd24bc56;p=xonotic%2Fxonotic-data.pk3dir.git Improve weapon icon distribution --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 86dfadbaf..81812ca20 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -541,7 +541,7 @@ void HUD_Weapons(void) // reduce rows and columns as needed // NOTE: although weapons should aways look the same even if onlyowned is enabled, // we enlarge them a bit when possible to better match the desired aspect ratio - if(padded_panel_size.y > padded_panel_size.x) + if(padded_panel_size.x / padded_panel_size.y < aspect) { columns = ceil(weapon_count / rows); rows = ceil(weapon_count / columns);