]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve weapon icon distribution
authorterencehill <piuntn@gmail.com>
Sat, 7 Feb 2015 19:07:50 +0000 (20:07 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 7 Feb 2015 19:07:50 +0000 (20:07 +0100)
qcsrc/client/hud.qc

index 86dfadbaf20b6c6c3d53e782bee9544f65d75040..81812ca204eeb27d188499cf0dd3f1e41ee333da 100644 (file)
@@ -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);