From: terencehill Date: Fri, 24 Dec 2021 13:25:20 +0000 (+0100) Subject: Menu Server list: partially fix server row next to the heading slightly smaller than... X-Git-Tag: xonotic-v0.8.5~263 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecfd9fafd3d908056d16d122c7dc4c5ea9f44074;p=xonotic%2Fxonotic-data.pk3dir.git Menu Server list: partially fix server row next to the heading slightly smaller than others if (autocvar_menu_slist_categories <= 0) (now it's less noticeable) --- diff --git a/qcsrc/menu/xonotic/serverlist.qc b/qcsrc/menu/xonotic/serverlist.qc index c990c9212..f62b2f231 100644 --- a/qcsrc/menu/xonotic/serverlist.qc +++ b/qcsrc/menu/xonotic/serverlist.qc @@ -1179,8 +1179,9 @@ float XonoticServerList_getItemHeight(entity me, int item) { for (int i = 0; i < category_draw_count; ++i) { // Matches exactly the headings with increased height. + // FIXME server row next to the heading is slightly smaller than others if (autocvar_menu_slist_categories <= 0) if (item == category_item[i]) - return me.itemHeight * (me.categoriesHeight + 1); + return me.itemHeight * (me.categoriesHeight + me.serversHeight); } return me.itemHeight * me.serversHeight; }