- Fixed: side_t::SetTextureYScale() did not allow negative scales, even though they are perfectly valid for flipping a texture vertically.

SVN r3850 (trunk)
This commit is contained in:
Randy Heit 2012-08-23 01:40:00 +00:00
parent 980202a18f
commit 3bfe7b74f4

View file

@ -850,11 +850,11 @@ struct side_t
void SetTextureYScale(int which, fixed_t scale)
{
textures[which].yscale = scale <= 0? FRACUNIT : scale;
textures[which].yscale = scale == 0 ? FRACUNIT : scale;
}
void SetTextureYScale(fixed_t scale)
{
textures[top].yscale = textures[mid].yscale = textures[bottom].yscale = scale <= 0? FRACUNIT : scale;
textures[top].yscale = textures[mid].yscale = textures[bottom].yscale = scale == 0 ? FRACUNIT : scale;
}
fixed_t GetTextureYScale(int which) const
{