Skip to content

Commit

Permalink
sv_frame: fakeclients must be kicked on changelevel(GoldSrc compatibi…
Browse files Browse the repository at this point in the history
…lity)
  • Loading branch information
a1batross committed Oct 28, 2018
1 parent 2d1e07f commit b5b493b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engine/server/sv_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,9 +895,15 @@ void SV_InactivateClients( void )
if( !cl->state || !cl->edict )
continue;

if( !cl->edict || (cl->edict->v.flags & FL_FAKECLIENT))
if( !cl->edict )
continue;

if( cl->edict->v.flags & FL_FAKECLIENT )
{
SV_DropClient( cl );
continue;
}

if( svs.clients[i].state > cs_connected )
svs.clients[i].state = cs_connected;

Expand Down

0 comments on commit b5b493b

Please sign in to comment.