Merge remote-tracking branch 'gz/master' into thereisnospoon

This commit is contained in:
ZZYZX 2017-01-29 01:01:28 +02:00
commit 9a54a5affe
36 changed files with 195 additions and 59 deletions

View file

@ -8202,14 +8202,16 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
{
// only cast implicit-string types for vararg, leave everything else as-is
// this was outright copypasted from FxFormat
ArgList[i] = ArgList[i]->Resolve(ctx);
if (ArgList[i]->ValueType == TypeName ||
ArgList[i]->ValueType == TypeSound)
x = ArgList[i]->Resolve(ctx);
if (x)
{
x = new FxStringCast(ArgList[i]);
x = x->Resolve(ctx);
if (x->ValueType == TypeName ||
x->ValueType == TypeSound)
{
x = new FxStringCast(ArgList[i]);
x = x->Resolve(ctx);
}
}
else x = ArgList[i];
}
else if (!(flag & (VARF_Ref|VARF_Out)))
{