mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +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) {
|
hasTile: function (x, y, layer) {
|
||||||
|
|
||||||
|
layer = this.getLayer(layer);
|
||||||
|
|
||||||
return (this.layers[layer].data[y] !== null && this.layers[layer].data[y][x] !== null);
|
return (this.layers[layer].data[y] !== null && this.layers[layer].data[y][x] !== null);
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue