mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-06-01 01:20:58 +00:00
- scriptified Heretic's wizard.
This commit is contained in:
parent
a5f9eb5be1
commit
14a9c13113
7 changed files with 135 additions and 102 deletions
|
@ -6680,7 +6680,19 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
|
|||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((unsigned)implicit < argtypes.Size() && argtypes[implicit] != nullptr)
|
||||
{
|
||||
auto flags = Function->Variants[0].ArgFlags[implicit];
|
||||
if (!(flags & VARF_Optional))
|
||||
{
|
||||
ScriptPosition.Message(MSG_ERROR, "Insufficient arguments in call to %s", Function->SymbolName.GetChars());
|
||||
delete this;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (failed)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue