- Fixed: ScaleY was not defaulting to ScaleX when specified as 0, which is how the behavior originally was in 2.8. This behavior can now be toggled with a new boolean, 'usezero'.

This commit is contained in:
MajorCooke 2016-03-07 09:02:34 -06:00
commit af50a79e55
2 changed files with 3 additions and 2 deletions

View file

@ -2913,13 +2913,14 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetScale)
PARAM_FIXED (scalex);
PARAM_FIXED_OPT (scaley) { scaley = scalex; }
PARAM_INT_OPT (ptr) { ptr = AAPTR_DEFAULT; }
PARAM_BOOL_OPT (usezero) { usezero = false; }
AActor *ref = COPY_AAPTR(self, ptr);
if (ref != NULL)
{
ref->scaleX = scalex;
ref->scaleY = scaley;
ref->scaleY = (!usezero && !scaley) ? scalex : scaley;
}
return 0;
}