From: Rudolf Polzer Date: Wed, 9 Feb 2011 12:33:54 +0000 (+0100) Subject: fix part of the last merge, because the "favorite" button is supposed to work even... X-Git-Tag: xonotic-v0.5.0~311^2~28 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=71cbd76e43f615763aea99e07137f659eab6c895;p=xonotic%2Fxonotic-data.pk3dir.git fix part of the last merge, because the "favorite" button is supposed to work even with an empty server list, if the server IP text box is not empty --- diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index e6d7a902d..a3d747dab 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -315,7 +315,8 @@ void XonoticServerList_draw(entity me) me.nItems = gethostcachevalue(SLIST_HOSTCACHEVIEWCOUNT); me.connectButton.disabled = ((me.nItems == 0) && (me.ipAddressBox.text == "")); - me.infoButton.disabled = me.favoriteButton.disabled = ((me.nItems == 0) || !owned); + me.infoButton.disabled = ((me.nItems == 0) || !owned); + me.favoriteButton.disabled = ((me.nItems == 0) && (me.ipAddressBox.text == "")); found = 0; if(me.selectedServer)