Fix off-by-one in rotated textures.

This commit is contained in:
LexManos 2013-04-03 01:32:33 -07:00
parent 39ccc2e150
commit 6df717db5a

View file

@ -5,7 +5,7 @@
if (par4) if (par4)
{ {
- l = par2 + (par3Texture.getHeight() - k); - l = par2 + (par3Texture.getHeight() - k);
+ l = par1 + (par3Texture.getHeight() - k); //BUGFIX: targetY -> targetX + l = par1 + (par3Texture.getHeight() - k - 1); //BUGFIX: targetY -> targetX and -1
} }
for (int k1 = 0; k1 < par3Texture.getWidth(); ++k1) for (int k1 = 0; k1 < par3Texture.getWidth(); ++k1)