From bd3d3a894dd161be8319c7b6f20aeb670f13dfc6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 21 Feb 2012 23:08:23 +0100 Subject: [PATCH] do not use gamedir name for icon --- qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c | 3 +-- qcsrc/menu/xonotic/serverlist.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c b/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c index e33be7bb1..4e6d6f590 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.c @@ -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 diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 66f35678c..1a94c115d 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -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") -- 2.39.2