From 90ec05fa09b7948f65b3c27be4f134dd8e7ed109 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 13 Jul 2011 18:37:26 +0000 Subject: - Forgot to mention: last rev (2077) bumped default protocol version to 70 - Fix queued packet rate control --- src/server/sv_client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/server/sv_client.c') diff --git a/src/server/sv_client.c b/src/server/sv_client.c index b05aba56..b9b5e659 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -853,7 +853,10 @@ int SV_SendQueuedMessages(void) if(cl->state) { - nextFragT = SV_Netchan_TransmitNextFragment(cl); + nextFragT = SV_RateMsec(cl); + + if(!nextFragT) + nextFragT = SV_Netchan_TransmitNextFragment(cl); if(nextFragT >= 0 && (retval == -1 || retval > nextFragT)) retval = nextFragT; -- cgit