Browse Source

engine: common: cvar: unused variables cleanup

pull/2/head
Alibek Omarov 12 months ago
parent
commit
350d8ccb7b
  1. 2
      engine/common/cvar.c
  2. 3
      engine/common/net_encode.c

2
engine/common/cvar.c

@ -1136,8 +1136,6 @@ As Cvar_Set, but also flags it as glconfig
*/ */
void Cvar_SetGL_f( void ) void Cvar_SetGL_f( void )
{ {
convar_t *var;
if( Cmd_Argc() != 3 ) if( Cmd_Argc() != 3 )
{ {
Con_Printf( S_USAGE "setgl <variable> <value>\n" ); Con_Printf( S_USAGE "setgl <variable> <value>\n" );

3
engine/common/net_encode.c

@ -1087,7 +1087,6 @@ int Delta_TestBaseline( entity_state_t *from, entity_state_t *to, qboolean playe
delta_info_t *dt = NULL; delta_info_t *dt = NULL;
delta_t *pField; delta_t *pField;
int i, countBits; int i, countBits;
int numChanges = 0;
countBits = MAX_ENTITY_BITS + 2; countBits = MAX_ENTITY_BITS + 2;
@ -1121,7 +1120,7 @@ int Delta_TestBaseline( entity_state_t *from, entity_state_t *to, qboolean playe
if( !Delta_CompareField( pField, from, to, timebase )) if( !Delta_CompareField( pField, from, to, timebase ))
{ {
// strings are handled difference // strings are handled differently
if( FBitSet( pField->flags, DT_STRING )) if( FBitSet( pField->flags, DT_STRING ))
countBits += Q_strlen((char *)((byte *)to + pField->offset )) * 8; countBits += Q_strlen((char *)((byte *)to + pField->offset )) * 8;
else countBits += pField->bits; else countBits += pField->bits;

Loading…
Cancel
Save