Fixed triggering Com_Error() when kicking a large number of bots at once.

Fixes Bugzilla #3418.
This commit is contained in:
Ryan C. Gordon 2009-09-14 23:12:54 +00:00
parent ce544b23e6
commit df13db2b64

View file

@ -138,7 +138,7 @@ void SV_Netchan_TransmitNextFragment( client_t *client ) {
if (!client->netchan.unsentFragments)
{
// make sure the netchan queue has been properly initialized (you never know)
if (!client->netchan_end_queue) {
if ((!client->netchan_end_queue) && (client->state >= CS_CONNECTED)) {
Com_Error(ERR_DROP, "netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment\n");
}
// the last fragment was transmitted, check wether we have queued messages