mirror of https://github.com/ZDoom/qzdoom.git
That was hard to read
This commit is contained in:
parent
af50a79e55
commit
8b9a0da5ef
|
@ -2919,8 +2919,12 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetScale)
|
||||||
|
|
||||||
if (ref != NULL)
|
if (ref != NULL)
|
||||||
{
|
{
|
||||||
|
if (scaley == 0 && !usezero)
|
||||||
|
{
|
||||||
|
scaley = scalex;
|
||||||
|
}
|
||||||
ref->scaleX = scalex;
|
ref->scaleX = scalex;
|
||||||
ref->scaleY = (!usezero && !scaley) ? scalex : scaley;
|
ref->scaleY = scaley;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue