From ecfd9fafd3d908056d16d122c7dc4c5ea9f44074 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 24 Dec 2021 14:25:20 +0100 Subject: [PATCH] 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) --- qcsrc/menu/xonotic/serverlist.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2