From 1fec8005e781eca95daa79fdd98b793b1f121615 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 8 Sep 2005 01:52:32 +0000 Subject: [PATCH] don't overflow q3 bots. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1287 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_send.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/server/sv_send.c b/engine/server/sv_send.c index 185e23812..cd78d4b8b 100644 --- a/engine/server/sv_send.c +++ b/engine/server/sv_send.c @@ -1731,6 +1731,13 @@ void SV_SendClientMessages (void) continue; } + if (c->protocol == SCP_BAD) //this is a bot. + { + SZ_Clear (&c->netchan.message); + SZ_Clear (&c->datagram); + continue; + } + SVQ3_SendMessage(c); } return;