Implemented WorldThingSpawned hook. Also changed Console.Printf to automatically add \n. Also fixed vararg calls with names.

This commit is contained in:
ZZYZX 2017-01-30 09:10:33 +02:00
commit 83f868a049
6 changed files with 19 additions and 4 deletions

View file

@ -8206,9 +8206,10 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
if (x)
{
if (x->ValueType == TypeName ||
x->ValueType == TypeSound)
x->ValueType == TypeSound ||
x->ValueType == TypeSpriteID) // spriteID can be a string too.
{
x = new FxStringCast(ArgList[i]);
x = new FxStringCast(x);
x = x->Resolve(ctx);
}
}