mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-26 11:10:55 +00:00
do not overshadow demorecording
This commit is contained in:
parent
1bdd1506d9
commit
3a4ed07e02
1 changed files with 3 additions and 3 deletions
|
@ -1355,7 +1355,7 @@ static void Got_NetVar(UINT8 **p, INT32 playernum)
|
|||
Setvalue(cvar, svalue, stealth);
|
||||
}
|
||||
|
||||
void CV_SaveNetVars(UINT8 **p, boolean demorecording)
|
||||
void CV_SaveNetVars(UINT8 **p, boolean isdemorecording)
|
||||
{
|
||||
consvar_t *cvar;
|
||||
UINT8 *count_p = *p;
|
||||
|
@ -1365,12 +1365,12 @@ void CV_SaveNetVars(UINT8 **p, boolean demorecording)
|
|||
// the client will reset all netvars to default before loading
|
||||
WRITEUINT16(*p, 0x0000);
|
||||
for (cvar = consvar_vars; cvar; cvar = cvar->next)
|
||||
if (((cvar->flags & CV_NETVAR) && !CV_IsSetToDefault(cvar)) || (demorecording && cvar->netid == cv_numlaps.netid))
|
||||
if (((cvar->flags & CV_NETVAR) && !CV_IsSetToDefault(cvar)) || (isdemorecording && cvar->netid == cv_numlaps.netid))
|
||||
{
|
||||
WRITEUINT16(*p, cvar->netid);
|
||||
|
||||
// UGLY HACK: Save proper lap count in net replays
|
||||
if (demorecording && cvar->netid == cv_numlaps.netid)
|
||||
if (isdemorecording && cvar->netid == cv_numlaps.netid)
|
||||
{
|
||||
if (cv_basenumlaps.value &&
|
||||
(!(mapheaderinfo[gamemap - 1]->levelflags & LF_SECTIONRACE)
|
||||
|
|
Loading…
Reference in a new issue