mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
also try to load skies from gfx/env as darkplaces does
This commit is contained in:
parent
d87af8819f
commit
7dc5b587f8
1 changed files with 8 additions and 2 deletions
|
@ -85,8 +85,14 @@ R_LoadSkys (const char *skyname)
|
|||
COM_FOpenFile (name, &f);
|
||||
if (!f) {
|
||||
Con_DPrintf ("Couldn't load %s\n", name);
|
||||
skyloaded = false;
|
||||
continue;
|
||||
// also look in gfx/env, where Darkplaces looks for skies
|
||||
snprintf (name, sizeof (name), "gfx/env/%s%s.tga", skyname, suf[i]);
|
||||
COM_FOpenFile (name, &f);
|
||||
if (!f) {
|
||||
Con_DPrintf ("Couldn't load %s\n", name);
|
||||
skyloaded = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
targa = LoadTGA (f);
|
||||
Qclose (f);
|
||||
|
|
Loading…
Reference in a new issue