Fixed incorrect offset when using maximumheight.

This commit is contained in:
FrozenCow 2011-02-28 19:24:32 +01:00
parent 0210635822
commit 5c8d9f3ea3

View file

@ -39,9 +39,9 @@ public class DefaultTileRenderer implements MapTileRenderer {
WritableRaster r = im.getRaster();
boolean isempty = true;
int ix = KzedMap.anchorx + tile.px / 2 + tile.py / 2 - (maximumHeight/2);
int ix = KzedMap.anchorx + tile.px / 2 + tile.py / 2 - ((127-maximumHeight)/2);
int iy = maximumHeight;
int iz = KzedMap.anchorz + tile.px / 2 - tile.py / 2 + (maximumHeight/2);
int iz = KzedMap.anchorz + tile.px / 2 - tile.py / 2 + ((127-maximumHeight)/2);
int jx, jz;