Hrm, must have not saved before committing these.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2152 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-04-02 23:52:05 +00:00
parent f2a3436e6c
commit fd01aa605f
2 changed files with 8 additions and 3 deletions

View File

@ -119,7 +119,7 @@ cvar_t allow_download_csprogs = SCVAR("allow_download_csprogs", "0");
cvar_t cl_muzzleflash = SCVAR("cl_muzzleflash", "1");
cvar_t cl_item_bobbing = SCVAR("cl_model_bobbing", "0");
cvar_t cl_countpendingpl = SCVAR("cl_countpendingpl", "1");
cvar_t cl_countpendingpl = SCVAR("cl_countpendingpl", "0");
cvar_t requiredownloads = SCVARF("requiredownloads","1", CVAR_ARCHIVE);
cvar_t cl_standardchat = SCVARF("cl_standardchat", "0", CVAR_ARCHIVE);

View File

@ -248,7 +248,7 @@ int CL_CalcNet (void)
lost++;
}
if (cl_countpendingpl.value)
if (!cl_countpendingpl.value)
{
pending = cls.netchan.outgoing_sequence - cls.netchan.incoming_sequence - 1;
lost -= pending;
@ -263,7 +263,12 @@ int CL_CalcNet (void)
percent = 1;
}
else
percent = lost * 100 / sent;
{
if (sent < 1)
percent = 100; //shouldn't ever happen.
else
percent = lost * 100 / sent;
}
return percent;
}