From 492843013959537514f0c7c2f4d9d8c8a0efe45a Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 14 Feb 2025 02:31:05 +1000 Subject: [PATCH] Use preloading to test if a mod icon exists, fixes broken mod icons in the menu --- qcsrc/menu/xonotic/serverlist.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5