also try to load skies from gfx/env as darkplaces does

This commit is contained in:
Seth Galbraith 2002-01-11 01:26:21 +00:00
parent d87af8819f
commit 7dc5b587f8

View file

@ -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);