Fixed up qc stat field submission.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2989 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2008-05-31 10:35:38 +00:00
parent f63468f1d7
commit 94d108c522

View file

@ -1212,6 +1212,7 @@ void SV_QCStatEval(int type, char *name, evalc_t *cache, int statnum)
void SV_QCStatName(int type, char *name, int statnum)
{
evalc_t cache;
memset(&cache, 0, sizeof(cache));
if (!svprogfuncs->GetEdictFieldValue(svprogfuncs, NULL, name, &cache))
return;
@ -1421,7 +1422,7 @@ void SV_UpdateClientStats (client_t *client, int pnum)
}
else
{
if ((client->fteprotocolextensions & PEXT_CSQC) && sv.csqcchecksum)
if ((client->fteprotocolextensions & PEXT_CSQC) && (sv.csqcchecksum || progstype == PROG_H2))
{
if (statsf[i] && statsf[i] - (float)(int)statsf[i] == 0)
{