From: Mario Date: Thu, 13 Feb 2025 16:31:05 +0000 (+1000) Subject: Use preloading to test if a mod icon exists, fixes broken mod icons in the menu X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=492843013959537514f0c7c2f4d9d8c8a0efe45a;p=xonotic%2Fxonotic-data.pk3dir.git Use preloading to test if a mod icon exists, fixes broken mod icons in the menu --- diff --git a/qcsrc/menu/xonotic/serverlist.qc b/qcsrc/menu/xonotic/serverlist.qc index 03bcd438b4..84a6441644 100644 --- a/qcsrc/menu/xonotic/serverlist.qc +++ b/qcsrc/menu/xonotic/serverlist.qc @@ -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