mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 06:31:56 +00:00
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:
parent
df205a4fab
commit
90d881a694
2 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue