don't attempt to load skys unless skys are enabled

This commit is contained in:
Bill Currie 2000-03-29 08:45:00 +00:00
parent 2cdef89e82
commit df205a4fab

View file

@ -508,6 +508,9 @@ R_LoadSkys ( void ) {
byte *skyimage = NULL; byte *skyimage = NULL;
char name[64]; char name[64];
if (!r_sky->value)
return;
for (i=0 ; i<6 ; i++) { for (i=0 ; i<6 ; i++) {
GL_Bind (SKY_TEX + i); GL_Bind (SKY_TEX + i);
snprintf(name, sizeof(name), "env/%s%s.tga", snprintf(name, sizeof(name), "env/%s%s.tga",