mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
sv_frame: fakeclients must be kicked on changelevel(GoldSrc compatibity) (port from Old Engine #b5b493)
This commit is contained in:
parent
480ef0a468
commit
cd30812607
@ -998,9 +998,15 @@ void SV_InactivateClients( void )
|
||||
if( !cl->state || !cl->edict )
|
||||
continue;
|
||||
|
||||
if( !cl->edict || FBitSet( cl->edict->v.flags, FL_FAKECLIENT ))
|
||||
if( !cl->edict )
|
||||
continue;
|
||||
|
||||
if( FBitSet( cl->edict->v.flags, FL_FAKECLIENT ))
|
||||
{
|
||||
SV_DropClient( cl, false );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( cl->state > cs_connected )
|
||||
cl->state = cs_connected;
|
||||
|
||||
@ -1015,4 +1021,4 @@ void SV_InactivateClients( void )
|
||||
MSG_Clear( &cl->netchan.message );
|
||||
MSG_Clear( &cl->datagram );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user