]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use preloading to test if a mod icon exists, fixes broken mod icons in the menu 1473/head
authorMario <mario.mario@y7mail.com>
Thu, 13 Feb 2025 16:31:05 +0000 (02:31 +1000)
committerterencehill <piuntn@gmail.com>
Tue, 13 May 2025 12:49:37 +0000 (14:49 +0200)
qcsrc/menu/xonotic/serverlist.qc

index 03bcd438b4edbf76b07c8b3e991f861e83f8b260..84a64416441e9367f4cafbde8049d80dc0c73132 100644 (file)
@@ -1024,7 +1024,7 @@ void XonoticServerList_drawListBoxItem(entity me, int i, vector absSize, bool is
        else
        {
                string icon = strcat("icon_mod_", modname);
-               if(draw_PictureSize(icon) == '0 0 0')
+               if(draw_PreloadPicture(icon) == "")
                        icon = "icon_mod_";
 
                // In mods, pure_available not being present indicates