Merge pull request #1 from videlais/patch-1

Tilemap.swap() called twice should not flip values
This commit is contained in:
Dan Cox 2014-03-11 23:42:10 -04:00
commit 0d16f877b3

View file

@ -1157,7 +1157,7 @@ Phaser.Tilemap.prototype = {
{
this._results[index].index = this._tempB;
}
else if (value.index === this._tempB)
if (value.index === this._tempB)
{
this._results[index].index = this._tempA;
}