mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 20:30:36 +08:00
engine: server: tiny refactoring, make SV_CalcPing pointer to client const
This commit is contained in:
@@ -540,7 +540,7 @@ void SV_ExecuteClientMessage( sv_client_t *cl, sizebuf_t *msg );
|
||||
void SV_ConnectionlessPacket( netadr_t from, sizebuf_t *msg );
|
||||
edict_t *SV_FakeConnect( const char *netname );
|
||||
void SV_BuildReconnect( sizebuf_t *msg );
|
||||
int SV_CalcPing( sv_client_t *cl );
|
||||
int SV_CalcPing( const sv_client_t *cl );
|
||||
void SV_UpdateServerInfo( void );
|
||||
void SV_EndRedirect( host_redirect_t *rd );
|
||||
void SV_RejectConnection( netadr_t from, const char *fmt, ... ) FORMAT_CHECK( 2 );
|
||||
|
||||
@@ -1087,7 +1087,7 @@ SV_CalcPing
|
||||
recalc ping on current client
|
||||
===================
|
||||
*/
|
||||
int SV_CalcPing( sv_client_t *cl )
|
||||
int SV_CalcPing( const sv_client_t *cl )
|
||||
{
|
||||
float ping = 0;
|
||||
int i, count;
|
||||
|
||||
Reference in New Issue
Block a user