That was hard to read

This commit is contained in:
Randy Heit 2016-03-07 09:58:52 -06:00
parent af50a79e55
commit 8b9a0da5ef

View file

@ -2919,8 +2919,12 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetScale)
if (ref != NULL)
{
if (scaley == 0 && !usezero)
{
scaley = scalex;
}
ref->scaleX = scalex;
ref->scaleY = (!usezero && !scaley) ? scalex : scaley;
ref->scaleY = scaley;
}
return 0;
}