Page 1 of 1

A_SetScale Disallow Negative flag + invert Y scale?

Posted: Sun Dec 01, 2013 10:34 am
by Major Cooke
A_SetScale(int scalex, int scaley, bool allownegatives)

The purpose of this is to prevent unwanted behavior from altering mods and making some... rather corny effects happening. The allownegatives boolean would default to 0 (maintains compatibility purposes, even though it's just a cosmetic effect)

Also, if I may ask, Graf, since you implemented inverting (which I must say is a godsend... no more having to define them all via textures lump!) for X, can you do so for Y as well, please?

Re: A_SetScale Disallow Negative flag + invert Y scale?

Posted: Sun Dec 01, 2013 10:37 am
by TheMightyHeracross
Inverted Y scale probably isn't happening:
Unfortunately for YScale this would be a lot more complicated because it has to change the actual sprite drawing direction. XScale just meant an additional check to toggle sprite flipping if a negative scale was passed.

Re: A_SetScale Disallow Negative flag + invert Y scale?

Posted: Sun Dec 01, 2013 10:58 am
by Major Cooke
Oh. Where was that at?

Re: A_SetScale Disallow Negative flag + invert Y scale?

Posted: Sun Dec 01, 2013 11:18 am
by Graf Zahl
Why? I couldn't care less if some idiot abused a negative scale for making a sprite disappear. And that's the only thing that could be negatively affected. Any such mod would have been broken in GZDoom long ago.

Re: A_SetScale Disallow Negative flag + invert Y scale?

Posted: Sun Dec 01, 2013 12:21 pm
by Enjay
Major Cooke wrote:Oh. Where was that at?
http://forum.zdoom.org/viewtopic.php?f= ... 0&p=727117