Merge pull request #835 from draklaw/tilemap-removeTile-fix

Tilemap removeTile sets tiles to null
This commit is contained in:
Richard Davey 2014-05-20 00:09:28 +01:00
commit 00819626fc

View file

@ -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;