From 3bfe7b74f4e4220fdec2d36fc96817a4d9b51f49 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 23 Aug 2012 01:40:00 +0000 Subject: [PATCH] - Fixed: side_t::SetTextureYScale() did not allow negative scales, even though they are perfectly valid for flipping a texture vertically. SVN r3850 (trunk) --- src/r_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_defs.h b/src/r_defs.h index 27c578e56..c43b6be83 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -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 {