aboutsummaryrefslogtreecommitdiffstats
path: root/code/server
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-14 23:12:54 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-14 23:12:54 +0000
commite0f111c7c4f50e5c677d2f5892e4eb3e9ec18a79 (patch)
treea347be6f9165e70735880fd178b39c2894345b1d /code/server
parentfe9edcfad4560857fad76f69ce17f9f7c1c87958 (diff)
downloadioquake3-aero-e0f111c7c4f50e5c677d2f5892e4eb3e9ec18a79.tar.gz
ioquake3-aero-e0f111c7c4f50e5c677d2f5892e4eb3e9ec18a79.zip
Fixed triggering Com_Error() when kicking a large number of bots at once.
Fixes Bugzilla #3418. git-svn-id: svn://svn.icculus.org/quake3/trunk@1596 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r--code/server/sv_net_chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/server/sv_net_chan.c b/code/server/sv_net_chan.c
index 9cc3fae..dd039ef 100644
--- a/code/server/sv_net_chan.c
+++ b/code/server/sv_net_chan.c
@@ -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