Browse Source

sv_frame: fakeclients must be kicked on changelevel(GoldSrc compatibity) (port from Old Engine #b5b493)

pull/2/head
Alibek Omarov 6 years ago
parent
commit
cd30812607
  1. 10
      engine/server/sv_frame.c

10
engine/server/sv_frame.c

@ -998,9 +998,15 @@ void SV_InactivateClients( void ) @@ -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 ) @@ -1015,4 +1021,4 @@ void SV_InactivateClients( void )
MSG_Clear( &cl->netchan.message );
MSG_Clear( &cl->datagram );
}
}
}

Loading…
Cancel
Save