Fix up some fubars in MTS and MTA

This commit is contained in:
Christian Weeks 2012-05-18 20:16:41 -04:00
parent 88f3c4f9bd
commit a40ba43957
2 changed files with 3 additions and 3 deletions

View file

@ -95,9 +95,9 @@ public class ModTextureAnimation extends TextureFX
for (int frame = 0; frame < frames; frame++)
{
int[] pixels = new int[tWidth * tHeight];
int[] pixels = new int[tileSizeSquare];
image.getRGB(0, tHeight * frame, tWidth, tHeight, pixels, 0, tWidth);
images[frame] = new byte[tWidth * tHeight * 4];
images[frame] = new byte[tileSizeSquare << 2];
for (int i = 0; i < pixels.length; i++)
{

View file

@ -65,7 +65,7 @@ public class ModTextureStatic extends TextureFX
errored=true;
return;
}
pixels = new int[TextureFX.iconTileSize];
pixels = new int[TextureFX.tileSizeSquare];
if (tWidth == sWidth && tHeight == sHeight)
{