mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Merge pull request #835 from draklaw/tilemap-removeTile-fix
Tilemap removeTile sets tiles to null
This commit is contained in:
commit
00819626fc
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