mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Make sure clients don't see random messages before they're actually on server. They can get confused about 666/999/maxclients/etc.
This commit is contained in:
parent
6ffc737f57
commit
3e8e43a388
1 changed files with 2 additions and 1 deletions
|
@ -1944,6 +1944,7 @@ void SV_SendServerinfo (client_t *client)
|
|||
}
|
||||
}
|
||||
|
||||
client->pextknown = true; //if its not set yet, it'll probably never get set.
|
||||
cantruncate = client->message.cursize == 0;
|
||||
retry:
|
||||
MSG_WriteByte (&client->message, svc_print);
|
||||
|
@ -3014,7 +3015,7 @@ void SV_UpdateToReliableMessages (void)
|
|||
|
||||
for (j=0, client = svs.clients ; j<svs.maxclients ; j++, client++)
|
||||
{
|
||||
if (!client->active)
|
||||
if (!client->active || !client->pextknown) //don't let it see random reliables before it sees the svc_serverdata packet.
|
||||
continue;
|
||||
SZ_Write (&client->message, sv.reliable_datagram.data, sv.reliable_datagram.cursize);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue