Fixed Tilemap.removeTile issue to put tile of index -1 instead of null.

This commit is contained in:
Simon Boyé 2014-05-19 22:39:33 +02:00
parent 7b876d5fc4
commit 7e43248412

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;