Browse Source

SV_DropClient: Prevented transmission to fake clients

pull/2/head
Jonathan Poncelet 5 years ago committed by Alibek Omarov
parent
commit
214f53b8a7
  1. 10
      engine/server/sv_client.c

10
engine/server/sv_client.c

@ -545,13 +545,21 @@ void SV_DropClient( sv_client_t *cl, qboolean crash ) @@ -545,13 +545,21 @@ void SV_DropClient( sv_client_t *cl, qboolean crash )
if( !crash )
{
// add the disconnect
if( !FBitSet( cl->flags, FCL_FAKECLIENT ))
if( !FBitSet( cl->flags, FCL_FAKECLIENT ) )
{
MSG_BeginServerCmd( &cl->netchan.message, svc_disconnect );
}
if( cl->edict && cl->state == cs_spawned )
{
svgame.dllFuncs.pfnClientDisconnect( cl->edict );
}
if( !FBitSet( cl->flags, FCL_FAKECLIENT ) )
{
Netchan_TransmitBits( &cl->netchan, 0, NULL );
}
}
ClearBits( cl->flags, FCL_FAKECLIENT );
ClearBits( cl->flags, FCL_HLTV_PROXY );

Loading…
Cancel
Save