From 57a744f703430518fbcabe938d75dca54482b647 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 11 Oct 2007 13:23:33 +0000 Subject: [PATCH] make messages about not existing textures colored and regular prints (not dpritns) as they are quite fatal to the appearance of a map git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7626 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model_shared.c b/model_shared.c index 5c097458..c00ad082 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1703,7 +1703,7 @@ nothing GL_ZERO GL_ONE texflags |= TEXF_CLAMP; if (!(texture->skinframes[j] = R_SkinFrame_LoadExternal(shader->primarylayer->texturename[j], texflags, false))) { - Con_DPrintf("%s: could not load texture \"%s\" (frame %i) for shader \"%s\"\n", loadmodel->name, shader->primarylayer->texturename[j], j, texture->name); + Con_Printf("^4%s:^7 could not load texture ^3\"%s\"^7 (frame %i) for shader ^2\"%s\"\n", loadmodel->name, shader->primarylayer->texturename[j], j, texture->name); texture->skinframes[j] = R_SkinFrame_LoadMissing(); } } @@ -1716,7 +1716,7 @@ nothing GL_ZERO GL_ONE { if (!(texture->backgroundskinframes[j] = R_SkinFrame_LoadExternal(shader->backgroundlayer->texturename[j], ((shader->surfaceparms & Q3SURFACEPARM_NOMIPMAPS) ? 0 : TEXF_MIPMAP) | TEXF_ALPHA | TEXF_PRECACHE | ((!r_picmipworld.integer || (shader->textureflags & Q3TEXTUREFLAG_NOPICMIP)) ? 0 : (TEXF_PICMIP | TEXF_COMPRESS)) | (shader->backgroundlayer->clampmap ? TEXF_CLAMP : 0), false))) { - Con_DPrintf("%s: could not load texture \"%s\" (frame %i) for shader \"%s\"\n", loadmodel->name, shader->backgroundlayer->texturename[j], j, texture->name); + Con_Printf("^4%s:^7 could not load texture ^3\"%s\"^7 (frame %i) for shader ^2\"%s\"\n", loadmodel->name, shader->backgroundlayer->texturename[j], j, texture->name); texture->backgroundskinframes[j] = R_SkinFrame_LoadMissing(); } } @@ -1748,7 +1748,7 @@ nothing GL_ZERO GL_ONE texture->basematerialflags |= MATERIALFLAG_WALL; texture->numskinframes = 1; if (!(texture->skinframes[0] = R_SkinFrame_LoadExternal(texture->name, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | (r_picmipworld.integer ? TEXF_PICMIP : 0) | TEXF_COMPRESS, false))) - Con_DPrintf("%s: could not load texture for missing shader \"%s\"\n", loadmodel->name, texture->name); + Con_Printf("^4%s:^7 could not load texture for missing shader ^3\"%s\"\n", loadmodel->name, texture->name); } // init the animation variables texture->currentframe = texture; -- 2.39.2