Detect if layer compression is used in a Tiled layer. Display warning and skip layer.

This commit is contained in:
MannyC 2016-04-03 23:08:41 +01:00 committed by Barry Handelman
parent 268b13392b
commit b29a77f4a4

View file

@ -250,6 +250,10 @@ Phaser.TilemapParser = {
} }
curl.data = bytes; curl.data = bytes;
} }
else if(curl.compression){
console.warn('TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer \'' + curl.name + '\'');
continue;
}
var layer = { var layer = {