diff --git a/src/tilemaps/Tileset.js b/src/tilemaps/Tileset.js index 296ae6a30..44f78fdac 100644 --- a/src/tilemaps/Tileset.js +++ b/src/tilemaps/Tileset.js @@ -308,7 +308,14 @@ var Tileset = new Class({ this.glTexture = frame.source.glTexture; - this.updateTileData(bounds.width, bounds.height, bounds.x, bounds.y); + if (frame.width > bounds.width || frame.height > bounds.height) + { + this.updateTileData(frame.width, frame.height); + } + else + { + this.updateTileData(bounds.width, bounds.height, bounds.x, bounds.y); + } return this; },