Merge pull request #680 from Raeven0/dev

correct Tilemap.hasTile(...) parameter typing
This commit is contained in:
Richard Davey 2014-04-07 12:29:19 +01:00
commit 0c9bcc2ef2

View file

@ -996,6 +996,8 @@ Phaser.Tilemap.prototype = {
*/
hasTile: function (x, y, layer) {
layer = this.getLayer(layer);
return (this.layers[layer].data[y] !== null && this.layers[layer].data[y][x] !== null);
},