mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
Applied values to latched CVARs in correct order
https://forum.zdoom.org/viewtopic.php?t=59159
This commit is contained in:
parent
94720f8a96
commit
7a1ec9ab9d
1 changed files with 3 additions and 3 deletions
|
@ -1639,9 +1639,7 @@ FBaseCVar *C_CreateCVar(const char *var_name, ECVarType var_type, uint32_t flags
|
||||||
|
|
||||||
void UnlatchCVars (void)
|
void UnlatchCVars (void)
|
||||||
{
|
{
|
||||||
FLatchedValue var;
|
for (const FLatchedValue& var : LatchedValues)
|
||||||
|
|
||||||
while (LatchedValues.Pop (var))
|
|
||||||
{
|
{
|
||||||
uint32_t oldflags = var.Variable->Flags;
|
uint32_t oldflags = var.Variable->Flags;
|
||||||
var.Variable->Flags &= ~(CVAR_LATCH | CVAR_SERVERINFO);
|
var.Variable->Flags &= ~(CVAR_LATCH | CVAR_SERVERINFO);
|
||||||
|
@ -1650,6 +1648,8 @@ void UnlatchCVars (void)
|
||||||
delete[] var.Value.String;
|
delete[] var.Value.String;
|
||||||
var.Variable->Flags = oldflags;
|
var.Variable->Flags = oldflags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LatchedValues.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DestroyCVarsFlagged (uint32_t flags)
|
void DestroyCVarsFlagged (uint32_t flags)
|
||||||
|
|
Loading…
Reference in a new issue