Few bug fixes and some q3 compatable shaders.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@354 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ef1c50ef77
commit
4f36d50f60
43 changed files with 4306 additions and 389 deletions
|
@ -1951,23 +1951,24 @@ Change the bandwidth estimate for a client
|
|||
*/
|
||||
void SV_Rate_f (void)
|
||||
{
|
||||
extern cvar_t sv_maxrate;
|
||||
int rate;
|
||||
|
||||
if (Cmd_Argc() != 2)
|
||||
{
|
||||
SV_ClientTPrintf (host_client, PRINT_HIGH, STL_CURRENTRATE,
|
||||
(int)(1.0/host_client->netchan.rate + 0.5));
|
||||
host_client->rate);
|
||||
return;
|
||||
}
|
||||
|
||||
rate = atoi(Cmd_Argv(1));
|
||||
if (rate < 500)
|
||||
rate = 500;
|
||||
if (rate > 10000)
|
||||
rate = 10000;
|
||||
if (rate > sv_maxrate.value)
|
||||
rate = sv_maxrate.value;
|
||||
|
||||
SV_ClientTPrintf (host_client, PRINT_HIGH, STL_RATESETTO, rate);
|
||||
host_client->netchan.rate = 1.0/rate;
|
||||
host_client->rate = rate;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue