engine: server: tiny refactoring, make SV_CalcPing pointer to client const

This commit is contained in:
Alibek Omarov
2025-03-20 05:44:19 +03:00
parent 6b56e13b60
commit a1950ec7b0
2 changed files with 2 additions and 2 deletions

View File

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

View File

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