remove an unused extern for sys_ticrate, and added a comment warning about improper...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 16 Feb 2006 07:24:09 +0000 (07:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 16 Feb 2006 07:24:09 +0000 (07:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5989 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c
sv_main.c

index 786e869..d1af689 100644 (file)
@@ -59,7 +59,6 @@ kbutton_t     in_button9, in_button10, in_button11, in_button12, in_button13, in_but
 
 int                    in_impulse;
 
-extern cvar_t sys_ticrate;
 
 
 void KeyDown (kbutton_t *b)
index b817cc9..923617c 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1207,6 +1207,8 @@ qboolean SV_SendClientDatagram (client_t *client)
                if (sv_maxrate.integer != maxrate)
                        Cvar_SetValueQuick(&sv_maxrate, maxrate);
 
+               // this rate limiting does not understand sys_ticrate 0
+               // (but no one should be running that on a server!)
                rate = bound(NET_MINRATE, client->rate, maxrate);
                rate = (int)(client->rate * sys_ticrate.value);
                maxsize = bound(100, rate, 1400);