engine: common: cvar: unused variables cleanup

This commit is contained in:
Alibek Omarov 2023-12-05 10:46:18 +03:00
parent 0c512d0431
commit 350d8ccb7b
2 changed files with 1 additions and 4 deletions

View File

@ -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" );

View File

@ -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;