Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Merge branch 'mp_decals'
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Mar 31, 2016
2 parents c255b5e + a2386f5 commit b684393
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions engine/client/cl_parse.c
Expand Up @@ -621,6 +621,9 @@ void CL_ParseServerData( sizebuf_t *msg )
menu.globals->maxClients = cl.maxclients;
Q_strncpy( menu.globals->maptitle, clgame.maptitle, sizeof( menu.globals->maptitle ));

if( cl.maxclients > 1 && r_decals->value > mp_decals->value )
Cvar_SetFloat( "r_decals", mp_decals->value );

if( !cls.changelevel && !cls.changedemo )
CL_InitEdicts (); // re-arrange edicts

Expand Down
2 changes: 2 additions & 0 deletions engine/client/gl_local.h
Expand Up @@ -691,6 +691,8 @@ extern convar_t *r_dynamic;
extern convar_t *r_lightmap;
extern convar_t *r_fastsky;

extern convar_t *mp_decals;

extern convar_t *vid_displayfrequency;
extern convar_t *vid_fullscreen;
extern convar_t *vid_gamma;
Expand Down
4 changes: 3 additions & 1 deletion engine/client/gl_vidnt_common.c
Expand Up @@ -58,6 +58,7 @@ convar_t *r_lockcull;
convar_t *r_dynamic;
convar_t *r_lightmap;
convar_t *r_fastsky;
convar_t *mp_decals;

convar_t *vid_displayfrequency;
convar_t *vid_fullscreen;
Expand Down Expand Up @@ -406,9 +407,10 @@ void GL_InitCommands( void )
r_drawentities = Cvar_Get( "r_drawentities", "1", CVAR_CHEAT|CVAR_ARCHIVE, "render entities" );
r_flaresize = Cvar_Get( "r_flaresize", "200", CVAR_ARCHIVE, "set flares size" );
r_lefthand = Cvar_Get( "hand", "0", CVAR_ARCHIVE, "viewmodel handedness" );
r_decals = Cvar_Get( "r_decals", "4096", CVAR_ARCHIVE, "sets the maximum number of decals" );
r_decals = Cvar_Get( "r_decals", "4096", 0, "sets the maximum number of decals" );
r_xpos = Cvar_Get( "r_xpos", "130", CVAR_GLCONFIG, "window position by horizontal" );
r_ypos = Cvar_Get( "r_ypos", "48", CVAR_GLCONFIG, "window position by vertical" );
mp_decals = Cvar_Get( "mp_decals", "300", CVAR_ARCHIVE, "sets the maximum number of decals in multiplayer" );

gl_picmip = Cvar_Get( "gl_picmip", "0", CVAR_GLCONFIG, "reduces resolution of textures by powers of 2" );
gl_skymip = Cvar_Get( "gl_skymip", "0", CVAR_GLCONFIG, "reduces resolution of skybox textures by powers of 2" );
Expand Down

0 comments on commit b684393

Please sign in to comment.