Update CullTiles.js

This commit is contained in:
svipal 2020-02-08 11:55:33 +01:00 committed by GitHub
parent dc604e6336
commit e4c43e59ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,6 @@ var SnapCeil = require('../../math/snap/SnapCeil');
*/ */
var CullTiles = function (layer, camera, outputArray, renderOrder) var CullTiles = function (layer, camera, outputArray, renderOrder)
{ {
if (outputArray === undefined) { outputArray = []; } if (outputArray === undefined) { outputArray = []; }
if (renderOrder === undefined) { renderOrder = 0; } if (renderOrder === undefined) { renderOrder = 0; }
@ -46,7 +45,7 @@ var CullTiles = function (layer, camera, outputArray, renderOrder)
var drawTop = 0; var drawTop = 0;
var drawBottom = mapHeight; 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; }; var inIsoBounds = function () { return true; };
if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1) if (!tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1)
{ {