From 48c3c277938fdf0a63234be7a36de59472aad846 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 2 Oct 2019 06:07:40 +0000 Subject: [PATCH] Fix 'jerky spectators' bug, reported by Zel. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5558 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/net_chan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/common/net_chan.c b/engine/common/net_chan.c index 1ce6bf686..c5cef6305 100644 --- a/engine/common/net_chan.c +++ b/engine/common/net_chan.c @@ -595,6 +595,7 @@ int Netchan_Transmit (netchan_t *chan, int length, qbyte *data, int rate) int dupes = chan->dupe; int availbytes = Netchan_CanBytes(chan, rate); + availbytes = max(0, availbytes); //make sure it can't go negative (clientside doesn't check rate limits much) #ifdef NQPROT if (chan->isnqprotocol)