Skip to content

Commit

Permalink
[M]fix map size alias
Browse files Browse the repository at this point in the history
  • Loading branch information
闫茂源 committed Apr 9, 2024
1 parent 98f8c1d commit 6fcc2a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/jme3/tmx/render/MapRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public abstract class MapRenderer {
/**
* The whole map size in pixel
*/
protected Point mapSize;
protected Vector2f mapSize;

protected MapRenderer(TiledMap map) {
this.map = map;
Expand All @@ -71,7 +71,7 @@ protected MapRenderer(TiledMap map) {
this.tileWidth = map.getTileWidth();
this.tileHeight = map.getTileHeight();

this.mapSize = new Point();
this.mapSize = new Vector2f();
this.mapSize.set((float)width * tileWidth, (float)height * tileHeight);
}

Expand Down

0 comments on commit 6fcc2a9

Please sign in to comment.