]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Menu Server list: partially fix server row next to the heading slightly smaller than...
authorterencehill <piuntn@gmail.com>
Fri, 24 Dec 2021 13:25:20 +0000 (14:25 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 24 Dec 2021 13:25:20 +0000 (14:25 +0100)
qcsrc/menu/xonotic/serverlist.qc

index c990c921208b4d2dc4908958f0f9234517b00540..f62b2f23191ae68f4c637f90e1467f63dfa94219 100644 (file)
@@ -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;
 }