mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
Fixed max_stats 32 bug in cl_nopext demos when played back in non-fte clients
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@866 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
28a382a197
commit
d29d5e71e6
1 changed files with 3 additions and 15 deletions
|
@ -1005,8 +1005,10 @@ void CL_Record_f (void)
|
|||
MSG_WriteString (&buf, cl_lightstyle[i].map);
|
||||
}
|
||||
|
||||
for (i = 0; i < MAX_CL_STATS; i++)
|
||||
for (i = ((cls.fteprotocolextensions&PEXT_HEXEN2)?MAX_QW_STATS:MAX_CL_STATS); i >= 0; i--)
|
||||
{
|
||||
if (!cl.stats[0][i])
|
||||
continue;
|
||||
MSG_WriteByte (&buf, svc_updatestatlong);
|
||||
MSG_WriteByte (&buf, i);
|
||||
MSG_WriteLong (&buf, cl.stats[0][i]);
|
||||
|
@ -1016,20 +1018,6 @@ void CL_Record_f (void)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
MSG_WriteByte (&buf, svc_updatestatlong);
|
||||
MSG_WriteByte (&buf, STAT_TOTALMONSTERS);
|
||||
MSG_WriteLong (&buf, cl.stats[STAT_TOTALMONSTERS]);
|
||||
|
||||
MSG_WriteByte (&buf, svc_updatestatlong);
|
||||
MSG_WriteByte (&buf, STAT_SECRETS);
|
||||
MSG_WriteLong (&buf, cl.stats[STAT_SECRETS]);
|
||||
|
||||
MSG_WriteByte (&buf, svc_updatestatlong);
|
||||
MSG_WriteByte (&buf, STAT_MONSTERS);
|
||||
MSG_WriteLong (&buf, cl.stats[STAT_MONSTERS]);
|
||||
#endif
|
||||
|
||||
// get the client to check and download skins
|
||||
// when that is completed, a begin command will be issued
|
||||
MSG_WriteByte (&buf, svc_stufftext);
|
||||
|
|
Loading…
Reference in a new issue