OSDN Git Service

Fix Issue 1288.
authorJustin Shapcott <support@mobidevelop.com>
Wed, 27 Feb 2013 12:57:09 +0000 (05:57 -0700)
committerJustin Shapcott <support@mobidevelop.com>
Wed, 27 Feb 2013 13:02:01 +0000 (06:02 -0700)
gdx/src/com/badlogic/gdx/maps/tiled/TmxMapLoader.java

index b1f4bee..3bf3ba6 100644 (file)
@@ -145,8 +145,8 @@ public class TmxMapLoader extends SynchronousAssetLoader<TiledMap, TmxMapLoader.
                }
                mapProperties.put("width", mapWidth);
                mapProperties.put("height", mapHeight);
-               mapProperties.put("tilewidth", mapWidth);
-               mapProperties.put("tileheight", mapHeight);
+               mapProperties.put("tilewidth", tileWidth);
+               mapProperties.put("tileheight", tileHeight);
                if (mapBackgroundColor != null) {
                        mapProperties.put("backgroundcolor", mapBackgroundColor);
                }