From: Rudolf Polzer Date: Fri, 11 Oct 2013 06:06:25 +0000 (+0200) Subject: ONE BYTE. X-Git-Tag: xonotic-v0.8.0~256^2~18 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e36213dd723817a2d0e0924f9d2d89e50402f013;p=xonotic%2Fxonotic-data.pk3dir.git ONE BYTE. --- diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 9b943b16d..334c70c83 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -701,7 +701,6 @@ void XonoticServerList_draw(entity me) // Starts at first. This breaks the loop // invariant in the binary search and thus has // to be handled separately. - print(sprintf("hit: x='%d', dc='%d', first='%d', last='%d', catf='%d', catl='%d'.\n", x, category_draw_count, first, last, catf, catl)); if(gethostcachenumber(SLIST_FIELD_CATEGORY, first) != x) error("Category mismatch I"); if(first > 0) @@ -734,7 +733,6 @@ void XonoticServerList_draw(entity me) } } if (catl == x) { - print(sprintf("hit: x='%d', dc='%d', first='%d', last='%d', catf='%d', catl='%d'.\n", x, category_draw_count, first, last, catf, catl)); if(gethostcachenumber(SLIST_FIELD_CATEGORY, last) != x) error("Category mismatch III"); if(last > 0) @@ -1353,7 +1351,7 @@ float XonoticServerList_getItemStart(entity me, float item) { float start = item; for (i = 0; i < category_draw_count; ++i) { float first = i + category_item[i]; - if (item >= first) + if (item > first) start += me.categoriesHeight - 1; } return me.itemHeight * start;