- 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:
parent
fe4bc31d59
commit
af50a79e55
2 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue