mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- another fix
This commit is contained in:
parent
1b9148a443
commit
084c4f84bd
1 changed files with 2 additions and 3 deletions
|
@ -1557,6 +1557,7 @@ class GLDefsParser
|
|||
|
||||
UCVarValue oldval;
|
||||
UCVarValue val;
|
||||
ExtraUniformCVARData* oldextra = nullptr;
|
||||
sc.MustGetFloat();
|
||||
|
||||
val.Float = oldval.Float = sc.Float;
|
||||
|
@ -1569,6 +1570,7 @@ class GLDefsParser
|
|||
{
|
||||
// this value may have been previously loaded
|
||||
oldval.Float = cvar->GetGenericRep(CVAR_Float).Float;
|
||||
oldextra = (ExtraUniformCVARData*)cvar->GetExtraDataPointer();
|
||||
}
|
||||
|
||||
if (!(cvar->GetFlags() & CVAR_MOD))
|
||||
|
@ -1576,9 +1578,6 @@ class GLDefsParser
|
|||
if (!((cvar->GetFlags() & (CVAR_AUTO | CVAR_UNSETTABLE)) == (CVAR_AUTO | CVAR_UNSETTABLE)))
|
||||
sc.ScriptError("CVAR '%s' already in use!", cvarname.GetChars());
|
||||
}
|
||||
|
||||
|
||||
ExtraUniformCVARData* oldextra = nullptr;
|
||||
|
||||
// must've picked this up from an autoexec.cfg, handle accordingly
|
||||
if (cvar && ((cvar->GetFlags() & (CVAR_MOD|CVAR_AUTO|CVAR_UNSETTABLE)) == (CVAR_AUTO | CVAR_UNSETTABLE)))
|
||||
|
|
Loading…
Reference in a new issue