mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- don't error out on unknown CVars for optional parameters in menu items.
This commit is contained in:
parent
32da1de385
commit
73ed351144
1 changed files with 4 additions and 1 deletions
|
@ -796,7 +796,10 @@ static void ParseOptionMenuBody(FScanner &sc, DOptionMenuDescriptor *desc)
|
||||||
auto cv = FindCVar(sc.String, nullptr);
|
auto cv = FindCVar(sc.String, nullptr);
|
||||||
if (cv == nullptr && *sc.String)
|
if (cv == nullptr && *sc.String)
|
||||||
{
|
{
|
||||||
sc.ScriptError("Unknown CVar %s", sc.String);
|
if (func->Variants[0].ArgFlags[i] & VARF_Optional)
|
||||||
|
sc.ScriptMessage("Unknown CVar %s", sc.String);
|
||||||
|
else
|
||||||
|
sc.ScriptError("Unknown CVar %s", sc.String);
|
||||||
}
|
}
|
||||||
params.Push(cv);
|
params.Push(cv);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue