X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fskinlist.c;h=fdb07870a411f12b8b068eaf1601437d966ba7ab;hb=4aa545c4f63e4d388349eea4c2e2b453d22f29c9;hp=f2b2d8a241ca08441009a48f29a254e56962a6f3;hpb=fbfd70a030b050f51f7ed1c5e2e728fb9d2716b7;p=xonotic%2Fxonotic-data.pk3dir.git
diff --git a/qcsrc/menu/xonotic/skinlist.c b/qcsrc/menu/xonotic/skinlist.c
index f2b2d8a24..fdb07870a 100644
--- a/qcsrc/menu/xonotic/skinlist.c
+++ b/qcsrc/menu/xonotic/skinlist.c
@@ -104,7 +104,7 @@ void XonoticSkinList_getSkins(entity me)
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_NAME, substring(s, 9, strlen(s) - 24)); // the * part
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_TITLE, _("
"));
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_AUTHOR, _(""));
- if(draw_PreloadPicture(strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview")) == "")
+ if(draw_PictureSize(strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview")) == '0 0 0')
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_PREVIEW, "nopreview_menuskin");
else
bufstr_set(buf, i * SKINPARM_COUNT + SKINPARM_PREVIEW, strcat("/gfx/menu/", substring(s, 9, strlen(s) - 24), "/skinpreview"));
@@ -175,7 +175,7 @@ void XonoticSkinList_drawListBoxItem(entity me, float i, vector absSize, float i
void XonoticSkinList_setSkin(entity me)
{
me.saveCvars(me);
- localcmd("\nmenu_restart\ntogglemenu\ndefer 0.1 \"menu_cmd skinselect\"\n");
+ localcmd("\nmenu_restart\nmenu_cmd skinselect\n");
}
void SetSkin_Click(entity btn, entity me)