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?
A_SetScale Disallow Negative flag + invert Y scale?
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8209
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
- TheMightyHeracross
- Posts: 2100
- Joined: Sun Aug 18, 2013 9:41 am
- Location: Philadelphia, PA
Re: A_SetScale Disallow Negative flag + invert Y scale?
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.
- Major Cooke
- Posts: 8209
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: A_SetScale Disallow Negative flag + invert Y scale?
Oh. Where was that at?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: A_SetScale Disallow Negative flag + invert Y scale?
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?
http://forum.zdoom.org/viewtopic.php?f= ... 0&p=727117Major Cooke wrote:Oh. Where was that at?