mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 00:43:29 +00:00
That was hard to read
This commit is contained in:
parent
af50a79e55
commit
8b9a0da5ef
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue