mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 14:40:38 +00:00
Fixed reference and removed mapData check
This commit is contained in:
parent
8d5ef0e1e1
commit
f8faec2702
1 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ var IsometricCullTiles = function (layer, camera, outputArray, renderOrder)
|
|||
var mapData = layer.data;
|
||||
var mapWidth = layer.width;
|
||||
var mapHeight = layer.height;
|
||||
var skipCull = layer.skipCull;
|
||||
var skipCull = tilemapLayer.skipCull;
|
||||
|
||||
var drawLeft = 0;
|
||||
var drawRight = mapWidth;
|
||||
|
@ -48,7 +48,7 @@ var IsometricCullTiles = function (layer, camera, outputArray, renderOrder)
|
|||
|
||||
for (y = drawTop; y < drawBottom; y++)
|
||||
{
|
||||
for (x = drawLeft; mapData[y] && x < drawRight; x++)
|
||||
for (x = drawLeft; x < drawRight; x++)
|
||||
{
|
||||
if (skipCull || CheckIsoBounds(x, y, layer, camera))
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ var IsometricCullTiles = function (layer, camera, outputArray, renderOrder)
|
|||
|
||||
for (y = drawTop; y < drawBottom; y++)
|
||||
{
|
||||
for (x = drawRight; mapData[y] && x >= drawLeft; x--)
|
||||
for (x = drawRight; x >= drawLeft; x--)
|
||||
{
|
||||
if (skipCull || CheckIsoBounds(x, y, layer, camera))
|
||||
{
|
||||
|
@ -92,7 +92,7 @@ var IsometricCullTiles = function (layer, camera, outputArray, renderOrder)
|
|||
|
||||
for (y = drawBottom; y >= drawTop; y--)
|
||||
{
|
||||
for (x = drawLeft; mapData[y] && x < drawRight; x++)
|
||||
for (x = drawLeft; x < drawRight; x++)
|
||||
{
|
||||
if (skipCull || CheckIsoBounds(x, y, layer, camera))
|
||||
{
|
||||
|
@ -114,7 +114,7 @@ var IsometricCullTiles = function (layer, camera, outputArray, renderOrder)
|
|||
|
||||
for (y = drawBottom; y >= drawTop; y--)
|
||||
{
|
||||
for (x = drawRight; mapData[y] && x >= drawLeft; x--)
|
||||
for (x = drawRight; x >= drawLeft; x--)
|
||||
{
|
||||
if (skipCull || CheckIsoBounds(x, y, layer, camera))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue