From dc647e251ac9cce3239475da19cf24cfdd24bc56 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 7 Feb 2015 20:07:50 +0100 Subject: [PATCH] Improve weapon icon distribution --- qcsrc/client/hud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2