From e4c43e59ba357b25c2dbd5814b43392575db0f36 Mon Sep 17 00:00:00 2001 From: svipal <48034417+svipal@users.noreply.github.com> Date: Sat, 8 Feb 2020 11:55:33 +0100 Subject: [PATCH] Update CullTiles.js --- src/tilemaps/components/CullTiles.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tilemaps/components/CullTiles.js b/src/tilemaps/components/CullTiles.js index d377784b3..8c4e94b38 100644 --- a/src/tilemaps/components/CullTiles.js +++ b/src/tilemaps/components/CullTiles.js @@ -22,7 +22,6 @@ var SnapCeil = require('../../math/snap/SnapCeil'); */ var CullTiles = function (layer, camera, outputArray, renderOrder) { - if (outputArray === undefined) { outputArray = []; } if (renderOrder === undefined) { renderOrder = 0; } @@ -46,7 +45,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder) var drawTop = 0; var drawBottom = mapHeight; - // we define it earlier for it to make sense in scope + // we define the isometric culling function as a dummy early on for it to make sense in scope var inIsoBounds = function () { return true; }; if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) {