sv_frame: fakeclients must be kicked on changelevel(GoldSrc compatibity) (port from Old Engine #b5b493)
This commit is contained in:
parent
480ef0a468
commit
cd30812607
1 changed files with 8 additions and 2 deletions
|
@ -998,9 +998,15 @@ void SV_InactivateClients( void )
|
||||||
if( !cl->state || !cl->edict )
|
if( !cl->state || !cl->edict )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( !cl->edict || FBitSet( cl->edict->v.flags, FL_FAKECLIENT ))
|
if( !cl->edict )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( FBitSet( cl->edict->v.flags, FL_FAKECLIENT ))
|
||||||
|
{
|
||||||
|
SV_DropClient( cl, false );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if( cl->state > cs_connected )
|
if( cl->state > cs_connected )
|
||||||
cl->state = cs_connected;
|
cl->state = cs_connected;
|
||||||
|
|
||||||
|
@ -1015,4 +1021,4 @@ void SV_InactivateClients( void )
|
||||||
MSG_Clear( &cl->netchan.message );
|
MSG_Clear( &cl->netchan.message );
|
||||||
MSG_Clear( &cl->datagram );
|
MSG_Clear( &cl->datagram );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue