]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
show unknown mod as ?
authorRudolf Polzer <divverent@xonotic.org>
Sun, 19 Feb 2012 15:19:11 +0000 (16:19 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 19 Feb 2012 15:19:11 +0000 (16:19 +0100)
qcsrc/menu/xonotic/serverlist.c

index 8c003b9007bb8592b7d896814598bfed37b0d552..05cb576e78ec68449f9696ed8f6a79e81172e263 100644 (file)
@@ -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;