mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 01:21:17 +00:00
make nosave cvars set their value bypassing network code
This may look as a workaround, it is not. nosave cvars are meant to be used as a storage for statistical data that doesn't affect gameplay. That's why this data isn't saved to the savefile in the first place. Therefore, there is no point in sending this data over network. It would have no meaning on machines other than local.
This commit is contained in:
parent
1fed15efc2
commit
1f1da5ba31
1 changed files with 8 additions and 1 deletions
|
@ -199,7 +199,14 @@ void FBaseCVar::SetGenericRep (UCVarValue value, ECVarType type)
|
|||
Flags &= ~CVAR_UNSAFECONTEXT;
|
||||
return;
|
||||
}
|
||||
D_SendServerInfoChange (this, value, type);
|
||||
if (Flags & CVAR_NOSAVEGAME)
|
||||
{
|
||||
ForceSet (value, type);
|
||||
}
|
||||
else
|
||||
{
|
||||
D_SendServerInfoChange (this, value, type);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue