]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 786e86985cac09a4ced0503cd2fef1434b6792e9..d1af6899729f825bf9b4dda38aeb11ffa9e8d1df 100644 (file)
@@ -59,7 +59,6 @@ kbutton_t     in_button9, in_button10, in_button11, in_button12, in_button13, in_but
 
 int                    in_impulse;
 
 
 int                    in_impulse;
 
-extern cvar_t sys_ticrate;
 
 
 void KeyDown (kbutton_t *b)
 
 
 void KeyDown (kbutton_t *b)
index b817cc97053d977746e799ccb20d95cd16715581..923617c6b969cefb0a5b1c82213071d38b849043 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);
 
                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);
                rate = bound(NET_MINRATE, client->rate, maxrate);
                rate = (int)(client->rate * sys_ticrate.value);
                maxsize = bound(100, rate, 1400);