fix incorrect calculations when setting output map dimensions

This commit is contained in:
Gered 2013-08-04 16:30:11 -04:00
parent c7ce2d23d5
commit a8b2c39101

View file

@ -74,8 +74,8 @@ public class TileMapLoader {
jsonMap.chunkHeight = tileMap.getChunks()[0].getHeight();
jsonMap.chunkDepth = tileMap.getChunks()[0].getDepth();
jsonMap.widthInChunks = tileMap.getWidth() / jsonMap.chunkWidth;
jsonMap.heightInChunks = tileMap.getWidth() / jsonMap.chunkHeight;
jsonMap.depthInChunks = tileMap.getWidth() / jsonMap.chunkDepth;
jsonMap.heightInChunks = tileMap.getHeight() / jsonMap.chunkHeight;
jsonMap.depthInChunks = tileMap.getDepth() / jsonMap.chunkDepth;
// TODO: figure out real lighting mode from the types of vertex generator / lighter objects set
jsonMap.lightingMode = null;