Browse Source

engine: remove cvar r_lighting_modulate, it's some unindentifiable legacy

pull/2/head
Alibek Omarov 10 months ago
parent
commit
caefa0b7b9
  1. 1
      engine/ref_api.h
  2. 2
      engine/server/sv_main.c
  3. 2
      engine/server/sv_phys.c
  4. 2
      ref/gl/gl_rlight.c
  5. 2
      ref/soft/r_light.c

1
engine/ref_api.h

@ -678,7 +678,6 @@ typedef int (*REFAPI)( int version, ref_interface_t *pFunctionTable, ref_api_t*
ENGINE_SHARED_CVAR( f, r_sprite_lighting ) \ ENGINE_SHARED_CVAR( f, r_sprite_lighting ) \
ENGINE_SHARED_CVAR( f, r_drawviewmodel ) \ ENGINE_SHARED_CVAR( f, r_drawviewmodel ) \
ENGINE_SHARED_CVAR( f, r_glowshellfreq ) \ ENGINE_SHARED_CVAR( f, r_glowshellfreq ) \
ENGINE_SHARED_CVAR( f, r_lighting_modulate ) \
#define DECLARE_ENGINE_SHARED_CVAR_LIST() \ #define DECLARE_ENGINE_SHARED_CVAR_LIST() \
ENGINE_SHARED_CVAR_LIST( DECLARE_ENGINE_SHARED_CVAR ) ENGINE_SHARED_CVAR_LIST( DECLARE_ENGINE_SHARED_CVAR )

2
engine/server/sv_main.c

@ -129,7 +129,6 @@ CVAR_DEFINE( public_server, "public", "0", 0, "change server type from private t
CVAR_DEFINE_AUTO( sv_novis, "0", 0, "force to ignore server visibility" ); // disable server culling entities by vis CVAR_DEFINE_AUTO( sv_novis, "0", 0, "force to ignore server visibility" ); // disable server culling entities by vis
CVAR_DEFINE( sv_pausable, "pausable", "1", FCVAR_SERVER, "allow players to pause or not" ); CVAR_DEFINE( sv_pausable, "pausable", "1", FCVAR_SERVER, "allow players to pause or not" );
static CVAR_DEFINE_AUTO( timeout, "125", FCVAR_SERVER, "connection timeout" ); // seconds without any message static CVAR_DEFINE_AUTO( timeout, "125", FCVAR_SERVER, "connection timeout" ); // seconds without any message
CVAR_DEFINE( sv_lighting_modulate, "r_lighting_modulate", "0.6", FCVAR_ARCHIVE, "lightstyles modulate scale" );
CVAR_DEFINE( sv_maxclients, "maxplayers", "1", FCVAR_LATCH, "server max capacity" ); CVAR_DEFINE( sv_maxclients, "maxplayers", "1", FCVAR_LATCH, "server max capacity" );
CVAR_DEFINE_AUTO( sv_check_errors, "0", FCVAR_ARCHIVE, "check edicts for errors" ); CVAR_DEFINE_AUTO( sv_check_errors, "0", FCVAR_ARCHIVE, "check edicts for errors" );
CVAR_DEFINE_AUTO( sv_reconnect_limit, "3", FCVAR_ARCHIVE, "max reconnect attempts" ); // minimum seconds between connect messages CVAR_DEFINE_AUTO( sv_reconnect_limit, "3", FCVAR_ARCHIVE, "max reconnect attempts" ); // minimum seconds between connect messages
@ -919,7 +918,6 @@ void SV_Init( void )
Cvar_RegisterVariable( &sv_maxclients ); Cvar_RegisterVariable( &sv_maxclients );
Cvar_RegisterVariable( &sv_check_errors ); Cvar_RegisterVariable( &sv_check_errors );
Cvar_RegisterVariable( &public_server ); Cvar_RegisterVariable( &public_server );
Cvar_RegisterVariable( &sv_lighting_modulate );
Cvar_RegisterVariable( &sv_reconnect_limit ); Cvar_RegisterVariable( &sv_reconnect_limit );
Cvar_RegisterVariable( &sv_failuretime ); Cvar_RegisterVariable( &sv_failuretime );
Cvar_RegisterVariable( &sv_unlag ); Cvar_RegisterVariable( &sv_unlag );

2
engine/server/sv_phys.c

@ -1784,7 +1784,7 @@ static void SV_RunLightStyles( void )
lightstyle_t *ls; lightstyle_t *ls;
float scale; float scale;
scale = sv_lighting_modulate.value; scale = 1.0f;
// run lightstyles animation // run lightstyles animation
for( i = 0, ls = sv.lightstyles; i < MAX_LIGHTSTYLES; i++, ls++ ) for( i = 0, ls = sv.lightstyles; i < MAX_LIGHTSTYLES; i++, ls++ )

2
ref/gl/gl_rlight.c

@ -42,7 +42,7 @@ void CL_RunLightStyles( void )
if( !WORLDMODEL ) return; if( !WORLDMODEL ) return;
scale = r_lighting_modulate->value; scale = 1.0f;
// light animations // light animations
// 'm' is normal light, 'a' is no light, 'z' is double bright // 'm' is normal light, 'a' is no light, 'z' is double bright

2
ref/soft/r_light.c

@ -45,7 +45,7 @@ void GAME_EXPORT CL_RunLightStyles( void )
if( !WORLDMODEL ) return; if( !WORLDMODEL ) return;
scale = 1; //r_lighting_modulate->value; scale = 1.0f;
// light animations // light animations
// 'm' is normal light, 'a' is no light, 'z' is double bright // 'm' is normal light, 'a' is no light, 'z' is double bright

Loading…
Cancel
Save