re: skin code - what the hell was I on?

skyboxe load errors are only displayed if developer is on now..
This commit is contained in:
Joseph Carter 2000-03-29 09:10:53 +00:00
parent df205a4fab
commit 90d881a694
2 changed files with 5 additions and 7 deletions

View file

@ -517,8 +517,9 @@ R_LoadSkys ( void ) {
// snprintf(name, sizeof(name), "env/%s%s.pcx",
r_skyname->string, suf[i]);
COM_FOpenFile (name, &f);
if (!f) {
Con_Printf ("Couldn't load %s\n", name);
if (!f)
{
Con_DPrintf ("R_LoadSkys: Couldn't load %s\n", name);
continue;
}
LoadTGA (f, &skyimage);

View file

@ -134,14 +134,11 @@ byte *Skin_Cache (skin_t *skin)
// load the pic from disk
//
if (developer->value)
snprintf(name, sizeof(name), "skins/%s.pcx", skin->name);
snprintf(name, sizeof(name), "skins/%s.pcx", skin->name);
out = LoadPCX (name, &skin->cache, 320, 200);
if (out == NULL) {
Con_Printf ("Couldn't load skin %s\n", name);
if (developer->value)
snprintf(name, sizeof(name), "skins/%s.pcx",
baseskin->string);
snprintf(name, sizeof(name), "skins/%s.pcx", baseskin->string);
out = LoadPCX (name, &skin->cache, 320, 200);
if (out == NULL) {
skin->failedload = true;