mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
Added back in undefined Tileset check.
This commit is contained in:
parent
46c20ab00a
commit
ab739bdce0
1 changed files with 4 additions and 2 deletions
|
@ -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 = {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue