Added back in undefined Tileset check.

This commit is contained in:
Richard Davey 2016-07-23 09:43:20 +01:00
parent 46c20ab00a
commit ab739bdce0

View file

@ -173,7 +173,6 @@ Phaser.TilemapLayerGL = function (game, tilemap, index, width, height, tileset)
* @private * @private
*/ */
/*
if (tileset === undefined) if (tileset === undefined)
{ {
if (tilemap.layers[index] && tilemap.layers[index].tileset) if (tilemap.layers[index] && tilemap.layers[index].tileset)
@ -184,8 +183,11 @@ Phaser.TilemapLayerGL = function (game, tilemap, index, width, height, tileset)
{ {
tileset = tilemap.tilesets[0]; tileset = tilemap.tilesets[0];
} }
else
{
tileset = null;
}
} }
*/
this._mc = { this._mc = {