mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 08:31:01 +00:00
Fixed Tilemap.removeTile issue to put tile of index -1 instead of null.
This commit is contained in:
parent
7b876d5fc4
commit
7e43248412
1 changed files with 1 additions and 1 deletions
|
@ -1080,7 +1080,7 @@ Phaser.Tilemap.prototype = {
|
|||
{
|
||||
var tile = this.layers[layer].data[y][x];
|
||||
|
||||
this.layers[layer].data[y][x] = null;
|
||||
this.layers[layer].data[y][x] = new Phaser.Tile(this.layers[layer], -1, x, y, this.tileWidth, this.tileHeight);
|
||||
|
||||
this.layers[layer].dirty = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue