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:
parent
f2a3436e6c
commit
fd01aa605f
2 changed files with 8 additions and 3 deletions
|
@ -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_muzzleflash = SCVAR("cl_muzzleflash", "1");
|
||||||
|
|
||||||
cvar_t cl_item_bobbing = SCVAR("cl_model_bobbing", "0");
|
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 requiredownloads = SCVARF("requiredownloads","1", CVAR_ARCHIVE);
|
||||||
cvar_t cl_standardchat = SCVARF("cl_standardchat", "0", CVAR_ARCHIVE);
|
cvar_t cl_standardchat = SCVARF("cl_standardchat", "0", CVAR_ARCHIVE);
|
||||||
|
|
|
@ -248,7 +248,7 @@ int CL_CalcNet (void)
|
||||||
lost++;
|
lost++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cl_countpendingpl.value)
|
if (!cl_countpendingpl.value)
|
||||||
{
|
{
|
||||||
pending = cls.netchan.outgoing_sequence - cls.netchan.incoming_sequence - 1;
|
pending = cls.netchan.outgoing_sequence - cls.netchan.incoming_sequence - 1;
|
||||||
lost -= pending;
|
lost -= pending;
|
||||||
|
@ -262,8 +262,13 @@ int CL_CalcNet (void)
|
||||||
if (lost && !percent) //if they have any confirmed lost packets, report at least 1%
|
if (lost && !percent) //if they have any confirmed lost packets, report at least 1%
|
||||||
percent = 1;
|
percent = 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (sent < 1)
|
||||||
|
percent = 100; //shouldn't ever happen.
|
||||||
else
|
else
|
||||||
percent = lost * 100 / sent;
|
percent = lost * 100 / sent;
|
||||||
|
}
|
||||||
|
|
||||||
return percent;
|
return percent;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue