mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Merge pull request #680 from Raeven0/dev
correct Tilemap.hasTile(...) parameter typing
This commit is contained in:
commit
0c9bcc2ef2
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue