From d0b5b91a5e177d2588aac7e669051c05c688b05f Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 22 Sep 2021 11:25:13 +0100 Subject: [PATCH] tileOffset is always set, so this check is redundant #5637 --- src/tilemaps/TilemapLayerWebGLRenderer.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/tilemaps/TilemapLayerWebGLRenderer.js b/src/tilemaps/TilemapLayerWebGLRenderer.js index 7d533d8b3..4463c73f4 100644 --- a/src/tilemaps/TilemapLayerWebGLRenderer.js +++ b/src/tilemaps/TilemapLayerWebGLRenderer.js @@ -78,13 +78,8 @@ var TilemapLayerWebGLRenderer = function (renderer, src, camera) var tw = tileset.tileWidth * 0.5; var th = tileset.tileHeight * 0.5; - var tOffsetX = 0; - var tOffsetY = 0; - - if (tileset.tileoffset) { - tOffsetX = tileset.tileoffset.x; - tOffsetY = tileset.tileoffset.y; - } + var tOffsetX = tileset.tileOffset.x; + var tOffsetY = tileset.tileoffset.y; var tint = getTint(tile.tint, alpha * tile.alpha);