Fixed: ZScript: scale property should be expanded into xscale and yscale; Fixed: if actor's Spawn state starts with TNT1, first non-TNT1 frame will be used

This commit is contained in:
ZZYZX 2017-01-18 08:35:26 +02:00
parent 87fdd67fd6
commit 55b24eef39
6 changed files with 47 additions and 10 deletions

View file

@ -118,7 +118,15 @@ namespace CodeImp.DoomBuilder.ZDoom
//parser.LogWarning(string.Format("{0} = [{1}]", propertyname, string.Join(", ", propertyvalues.ToArray())));
// set property
props[propertyname] = propertyvalues;
// translate "scale" to x and y scale
if (propertyname == "scale")
{
props["xscale"] = props["yscale"] = propertyvalues;
}
else
{
props[propertyname] = propertyvalues;
}
break;
}
}