]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote branch 'origin/terencehill/misc_bugfixes'
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 9 Feb 2011 12:33:08 +0000 (13:33 +0100)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 9 Feb 2011 12:33:08 +0000 (13:33 +0100)
qcsrc/menu/xonotic/maplist.c
qcsrc/menu/xonotic/serverlist.c

index 1390ff3b1a1c22abd115612719341a3ac234b0f1..69757126b4c2a83fdd945f8eba0fd1b041544e0c 100644 (file)
@@ -297,6 +297,8 @@ void MapList_LoadMap(entity btn, entity me)
 float XonoticMapList_keyDown(entity me, float scan, float ascii, float shift)
 {
        string ch, save;
+       if(me.nItems <= 0)
+               return SUPER(XonoticMapList).keyDown(me, scan, ascii, shift);
        if(scan == K_ENTER || scan == K_KP_ENTER)
        {
                // pop up map info screen
index d1055f0498f75ac6c06132c6c84fb4eed2fee232..e6d7a902d50bc506f60508dcb11c01c0495cac2f 100644 (file)
@@ -315,7 +315,7 @@ void XonoticServerList_draw(entity me)
        me.nItems = gethostcachevalue(SLIST_HOSTCACHEVIEWCOUNT);
 
        me.connectButton.disabled = ((me.nItems == 0) && (me.ipAddressBox.text == ""));
-       me.infoButton.disabled = ((me.nItems == 0) || !owned);
+       me.infoButton.disabled = me.favoriteButton.disabled = ((me.nItems == 0) || !owned);
 
        found = 0;
        if(me.selectedServer)