]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
do not use gamedir name for icon
authorRudolf Polzer <divverent@alientrap.org>
Tue, 21 Feb 2012 22:08:23 +0000 (23:08 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 21 Feb 2012 22:08:23 +0000 (23:08 +0100)
qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c
qcsrc/menu/xonotic/serverlist.c

index e33be7bb1d6f708043ea064bda9d0bac2931cb7c..4e6d6f5909ea7181374a4b8a7695cf77df0b6b55 100644 (file)
@@ -154,8 +154,7 @@ void XonoticServerInfoDialog_loadServerInfo(entity me, float i)
 
        s = gethostcachestring(SLIST_FIELD_MOD, i);
        if(s != "data")
-               if(modname == "Xonotic")
-                       modname = s;
+               modname = sprintf(_("%s (%s)"), modname, s);
 
        j = MapInfo_Type_FromString(typestr); // try and get the real name of the game type
        if(j) { typestr = MapInfo_Type_ToText(j); } // only set it if we actually found it
index 66f35678ce412ad5880dd978310f82091d09d837..1a94c115dd2c5b75ab10af99d6547c6ea4c1ae2d 100644 (file)
@@ -637,11 +637,13 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float
                modname = "Xonotic";
 #endif
 
+       /*
        SLIST_FIELD_MOD = gethostcacheindexforkey("mod");
        s = gethostcachestring(SLIST_FIELD_MOD, i);
        if(s != "data")
                if(modname == "Xonotic")
                        modname = s;
+       */
 
        // list the mods here on which the pure server check actually works
        if(modname != "Xonotic")