From: Rudolf Polzer Date: Sun, 19 Feb 2012 15:19:11 +0000 (+0100) Subject: show unknown mod as ? X-Git-Tag: xonotic-v0.6.0~66^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4bc067dbd9c814b69e9a1e73b9a7c09d64adb54;p=xonotic%2Fxonotic-data.pk3dir.git show unknown mod as ? --- diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 8c003b900..05cb576e7 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -761,13 +761,12 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float { string n; n = strcat(SKINGFX_SERVERLIST_ICON, "_mod_", modname); - if(draw_PictureSize(n) != '0 0 0') - { - if(pure == 0) - draw_Picture(iconPos, n, iconSize, '1 1 1', 1); - else - draw_Picture(iconPos, n, iconSize, '1 1 1', SKINALPHA_SERVERLIST_ICON_NONPURE); - } + if(draw_PictureSize(n) == '0 0 0') + n = strcat(SKINGFX_SERVERLIST_ICON, "_mod_"); + if(pure == 0) + draw_Picture(iconPos, n, iconSize, '1 1 1', 1); + else + draw_Picture(iconPos, n, iconSize, '1 1 1', SKINALPHA_SERVERLIST_ICON_NONPURE); } iconPos_x += iconSize_x;