engine: server: cleanup unused variables

This commit is contained in:
Alibek Omarov
2026-05-13 10:09:37 +05:00
parent 9bad17505e
commit cb7ea5729a
5 changed files with 3 additions and 11 deletions

View File

@@ -474,7 +474,6 @@ A connection request that came from the game module
edict_t *GAME_EXPORT SV_FakeConnect( const char *netname )
{
char userinfo[MAX_INFO_STRING];
int i, count = 0;
sv_client_t *cl;
// find a client slot

View File

@@ -493,7 +493,6 @@ static void SV_RemoveIP_f( void )
const char *adr = Cmd_Argv( 1 );
qboolean removeAll;
ipfilter_t filter;
int i;
if( Cmd_Argc() != 2 && Cmd_Argc() != 3 )
{

View File

@@ -301,14 +301,12 @@ Check visibility through client camera, portal camera, etc
*/
static qboolean SV_CheckClientVisiblity( sv_client_t *cl, const byte *mask )
{
int i, clientnum;
int i;
vec3_t vieworg;
mleaf_t *leaf;
if( !mask ) return true; // GoldSrc rules
clientnum = cl - svs.clients;
// Invasion issues: wrong camera position received in ENGINE_SET_PVS
if( cl->pViewEntity )
VectorCopy( cl->pViewEntity->v.origin, vieworg );

View File

@@ -909,13 +909,11 @@ static void SV_GenerateTestPacket( void )
// TODO: shrink to minimum!
for( i = 0; i < svs.testpacket_filelen; i++ )
{
uint32_t crc2;
CRC32_ProcessByte( &crc, filepos[i] );
svs.testpacket_crcs[i] = crc;
#if 0
// test
crc2 = 0;
uint32_t crc2 = 0;
CRC32_ProcessBuffer( &crc2, filepos, i + 1 );
if( svs.testpacket_crcs[i] != crc2 )
{

View File

@@ -899,7 +899,7 @@ SV_PushMove
static edict_t *SV_PushMove( edict_t *pusher, float movetime )
{
int i, e, block;
int num_moved, oldsolid;
int oldsolid;
vec3_t mins, maxs, lmove;
sv_pushed_t *p, *pushed_p;
edict_t *check;
@@ -936,8 +936,6 @@ static edict_t *SV_PushMove( edict_t *pusher, float movetime )
return NULL;
// see if any solid entities are inside the final position
num_moved = 0;
for( e = 1; e < svgame.numEntities; e++ )
{
check = SV_EdictNum( e );