mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
Merge remote-tracking branch 'gzdoom/master' into qzdoom
This commit is contained in:
commit
7f81e0bd26
2 changed files with 6 additions and 3 deletions
|
@ -381,7 +381,7 @@ void DMenu::Ticker ()
|
|||
DEFINE_ACTION_FUNCTION(DMenu, Ticker)
|
||||
{
|
||||
PARAM_SELF_PROLOGUE(DMenu);
|
||||
self->Drawer();
|
||||
self->Ticker();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -392,7 +392,7 @@ void DMenu::CallTicker()
|
|||
VMValue params[] = { (DObject*)this };
|
||||
GlobalVMStack.Call(func, params, 1, nullptr, 0, nullptr);
|
||||
}
|
||||
else Drawer();
|
||||
else Ticker();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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