A_SetScale Disallow Negative flag + invert Y scale?

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: A_SetScale Disallow Negative flag + invert Y scale?

Re: A_SetScale Disallow Negative flag + invert Y scale?

by Enjay » Sun Dec 01, 2013 12:21 pm

Major Cooke wrote:Oh. Where was that at?
http://forum.zdoom.org/viewtopic.php?f= ... 0&p=727117

Re: A_SetScale Disallow Negative flag + invert Y scale?

by Graf Zahl » Sun Dec 01, 2013 11:18 am

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?

by Major Cooke » Sun Dec 01, 2013 10:58 am

Oh. Where was that at?

Re: A_SetScale Disallow Negative flag + invert Y scale?

by TheMightyHeracross » Sun Dec 01, 2013 10:37 am

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.

A_SetScale Disallow Negative flag + invert Y scale?

by Major Cooke » Sun Dec 01, 2013 10:34 am

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?

Top