mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-23 18:51:20 +00:00
Remove disconnecting players from clients.
This commit is contained in:
parent
34ff9612b4
commit
6b0b82d099
1 changed files with 3 additions and 0 deletions
|
@ -505,7 +505,10 @@ void Net_AckTicker(void)
|
|||
if (!(pdata->flags & PEER_LEAVING))
|
||||
Net_ServerMessage("%s disconnected.", pdata->name);
|
||||
if (playeringame[nodetoplayer[pdata->node]])
|
||||
{
|
||||
Net_SendRemove(pdata->node);
|
||||
CL_RemovePlayer(nodetoplayer[pdata->node]);
|
||||
}
|
||||
net_nodecount--;
|
||||
nodetopeer[pdata->node] = NULL;
|
||||
nodeingame[pdata->node] = false;
|
||||
|
|
Loading…
Reference in a new issue