mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 09:11:06 +00:00
loadsky command implemented:
loadsky skyname turns it on if env/skyname*.tga exists loadsky none turns it off, always. Clientside support. Serverside key needs to be added still
This commit is contained in:
parent
00aa3557d4
commit
0594dcfd33
6 changed files with 51 additions and 2 deletions
|
@ -195,6 +195,22 @@ void R_Envmap_f (void)
|
|||
GL_EndRendering ();
|
||||
}
|
||||
|
||||
/*
|
||||
R_LoadSky_f
|
||||
*/
|
||||
void
|
||||
R_LoadSky_f ()
|
||||
{
|
||||
if (Cmd_Argc () != 2)
|
||||
{
|
||||
Con_Printf ("loadsky <name> : load a skybox\n");
|
||||
return;
|
||||
}
|
||||
|
||||
R_LoadSkys (Cmd_Argv(1));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
===============
|
||||
R_Init
|
||||
|
@ -204,7 +220,8 @@ void R_Init (void)
|
|||
{
|
||||
Cmd_AddCommand ("timerefresh", R_TimeRefresh_f);
|
||||
Cmd_AddCommand ("envmap", R_Envmap_f);
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f);
|
||||
Cmd_AddCommand ("pointfile", R_ReadPointFile_f);
|
||||
Cmd_AddCommand ("loadsky", R_LoadSky_f);
|
||||
|
||||
/* Cvar_RegisterVariable (&r_norefresh);
|
||||
CVAR_FIXME */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue