git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5676
d7cf8633-e32d-0410-b094-
e92efae38249
}
}
-void R_LoadSkyBox(void)
+int R_LoadSkyBox(void)
{
int i, j, success;
int indices[4] = {0,1,2,3};
R_UnloadSkyBox();
if (!skyname[0])
- return;
+ return true;
for (j=0; j<3; j++)
{
}
if (j == 3)
- Con_Printf ("Failed to load %s as skybox\n", skyname);
+ return false;
+
+ return true;
}
int R_SetSkyBox(const char *sky)
strcpy(skyname, sky);
- R_LoadSkyBox();
-
- if (!skyname[0])
- return true;
- return false;
+ return R_LoadSkyBox();
}
// LordHavoc: added LoadSky console command