photonstorm/phaser — pull request #806 by sknoslo (2014-05-07 00:51:01+00:00)
Title: Remove tile fix

When using removeTile(), this previously set the tile to null, which meant later when you called getTile() on the same tile, it caused problems. This instead set's the index of the tile to -1, effectively making it blank, and returns a copy of the original tile so as not to break anything that might rely on the return value of removeTile().