From 77fe05ef7991d2ba521025c0ee2d7f33b01053f0 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 26 Jul 2003 08:28:43 +0000 Subject: [PATCH] report if skins are missing in SkinFiles system git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3332 d7cf8633-e32d-0410-b094-e92efae38249 --- model_alias.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/model_alias.c b/model_alias.c index a5e06a16..9cb19f15 100644 --- a/model_alias.c +++ b/model_alias.c @@ -223,8 +223,10 @@ void Mod_BuildAliasSkinsFromSkinFiles(aliasskin_t *skin, skinfile_t *skinfile, c if (!strcmp(skinfileitem->name, name)) { memset(&tempskinframe, 0, sizeof(tempskinframe)); - Mod_LoadSkinFrame(&tempskinframe, skinfileitem->replacement, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_CLAMP | TEXF_PRECACHE, true, false, true); - Mod_BuildAliasSkinFromSkinFrame(skin, &tempskinframe); + if (Mod_LoadSkinFrame(&tempskinframe, skinfileitem->replacement, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_CLAMP | TEXF_PRECACHE, true, false, true)) + Mod_BuildAliasSkinFromSkinFrame(skin, &tempskinframe); + else + Con_Printf("failed to load skin #%i \"%s\" replacement \"%s\"\n", i, name, skinfileitem->replacement); break; } } @@ -232,8 +234,10 @@ void Mod_BuildAliasSkinsFromSkinFiles(aliasskin_t *skin, skinfile_t *skinfile, c } else { - Mod_LoadSkinFrame(&tempskinframe, name, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_CLAMP | TEXF_PRECACHE, true, false, true); - Mod_BuildAliasSkinFromSkinFrame(skin, &tempskinframe); + if (Mod_LoadSkinFrame(&tempskinframe, name, (r_mipskins.integer ? TEXF_MIPMAP : 0) | TEXF_ALPHA | TEXF_CLAMP | TEXF_PRECACHE, true, false, true)) + Mod_BuildAliasSkinFromSkinFrame(skin, &tempskinframe); + else + Con_Printf("failed to load skin \"%s\"\n", name); } } -- 2.39.2