mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: server: cleanup unused variables
This commit is contained in:
@@ -474,7 +474,6 @@ A connection request that came from the game module
|
|||||||
edict_t *GAME_EXPORT SV_FakeConnect( const char *netname )
|
edict_t *GAME_EXPORT SV_FakeConnect( const char *netname )
|
||||||
{
|
{
|
||||||
char userinfo[MAX_INFO_STRING];
|
char userinfo[MAX_INFO_STRING];
|
||||||
int i, count = 0;
|
|
||||||
sv_client_t *cl;
|
sv_client_t *cl;
|
||||||
|
|
||||||
// find a client slot
|
// find a client slot
|
||||||
|
|||||||
@@ -493,7 +493,6 @@ static void SV_RemoveIP_f( void )
|
|||||||
const char *adr = Cmd_Argv( 1 );
|
const char *adr = Cmd_Argv( 1 );
|
||||||
qboolean removeAll;
|
qboolean removeAll;
|
||||||
ipfilter_t filter;
|
ipfilter_t filter;
|
||||||
int i;
|
|
||||||
|
|
||||||
if( Cmd_Argc() != 2 && Cmd_Argc() != 3 )
|
if( Cmd_Argc() != 2 && Cmd_Argc() != 3 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -301,14 +301,12 @@ Check visibility through client camera, portal camera, etc
|
|||||||
*/
|
*/
|
||||||
static qboolean SV_CheckClientVisiblity( sv_client_t *cl, const byte *mask )
|
static qboolean SV_CheckClientVisiblity( sv_client_t *cl, const byte *mask )
|
||||||
{
|
{
|
||||||
int i, clientnum;
|
int i;
|
||||||
vec3_t vieworg;
|
vec3_t vieworg;
|
||||||
mleaf_t *leaf;
|
mleaf_t *leaf;
|
||||||
|
|
||||||
if( !mask ) return true; // GoldSrc rules
|
if( !mask ) return true; // GoldSrc rules
|
||||||
|
|
||||||
clientnum = cl - svs.clients;
|
|
||||||
|
|
||||||
// Invasion issues: wrong camera position received in ENGINE_SET_PVS
|
// Invasion issues: wrong camera position received in ENGINE_SET_PVS
|
||||||
if( cl->pViewEntity )
|
if( cl->pViewEntity )
|
||||||
VectorCopy( cl->pViewEntity->v.origin, vieworg );
|
VectorCopy( cl->pViewEntity->v.origin, vieworg );
|
||||||
|
|||||||
@@ -909,13 +909,11 @@ static void SV_GenerateTestPacket( void )
|
|||||||
// TODO: shrink to minimum!
|
// TODO: shrink to minimum!
|
||||||
for( i = 0; i < svs.testpacket_filelen; i++ )
|
for( i = 0; i < svs.testpacket_filelen; i++ )
|
||||||
{
|
{
|
||||||
uint32_t crc2;
|
|
||||||
|
|
||||||
CRC32_ProcessByte( &crc, filepos[i] );
|
CRC32_ProcessByte( &crc, filepos[i] );
|
||||||
svs.testpacket_crcs[i] = crc;
|
svs.testpacket_crcs[i] = crc;
|
||||||
#if 0
|
#if 0
|
||||||
// test
|
// test
|
||||||
crc2 = 0;
|
uint32_t crc2 = 0;
|
||||||
CRC32_ProcessBuffer( &crc2, filepos, i + 1 );
|
CRC32_ProcessBuffer( &crc2, filepos, i + 1 );
|
||||||
if( svs.testpacket_crcs[i] != crc2 )
|
if( svs.testpacket_crcs[i] != crc2 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -899,7 +899,7 @@ SV_PushMove
|
|||||||
static edict_t *SV_PushMove( edict_t *pusher, float movetime )
|
static edict_t *SV_PushMove( edict_t *pusher, float movetime )
|
||||||
{
|
{
|
||||||
int i, e, block;
|
int i, e, block;
|
||||||
int num_moved, oldsolid;
|
int oldsolid;
|
||||||
vec3_t mins, maxs, lmove;
|
vec3_t mins, maxs, lmove;
|
||||||
sv_pushed_t *p, *pushed_p;
|
sv_pushed_t *p, *pushed_p;
|
||||||
edict_t *check;
|
edict_t *check;
|
||||||
@@ -936,8 +936,6 @@ static edict_t *SV_PushMove( edict_t *pusher, float movetime )
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
// see if any solid entities are inside the final position
|
// see if any solid entities are inside the final position
|
||||||
num_moved = 0;
|
|
||||||
|
|
||||||
for( e = 1; e < svgame.numEntities; e++ )
|
for( e = 1; e < svgame.numEntities; e++ )
|
||||||
{
|
{
|
||||||
check = SV_EdictNum( e );
|
check = SV_EdictNum( e );
|
||||||
|
|||||||
Reference in New Issue
Block a user