mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 06:42:09 +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,6 +796,9 @@ static void ParseOptionMenuBody(FScanner &sc, DOptionMenuDescriptor *desc)
|
|||
auto cv = FindCVar(sc.String, nullptr);
|
||||
if (cv == nullptr && *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);
|
||||
|
|
Loading…
Reference in a new issue