]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Whoops, nItems still needs to be set even when categories are disabled
authorSamual Lenks <samual@xonotic.org>
Thu, 10 Oct 2013 00:18:41 +0000 (20:18 -0400)
committerSamual Lenks <samual@xonotic.org>
Thu, 10 Oct 2013 00:18:41 +0000 (20:18 -0400)
qcsrc/menu/xonotic/serverlist.c

index 25d7d935da3c4ea024c42264ad1d5399375225fe..c3dddc5f7bf201b8917a7f1d37e4fb1489feb82f 100644 (file)
@@ -616,6 +616,7 @@ void XonoticServerList_draw(entity me)
                        me.nItems = itemcount;
                }
        }
+       else { me.nItems = gethostcachevalue(SLIST_HOSTCACHEVIEWCOUNT); }
 
        me.connectButton.disabled = ((me.nItems == 0) && (me.ipAddressBox.text == ""));
        me.infoButton.disabled = ((me.nItems == 0) || !owned);