mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Tilemap.swap() called twice should not flip values
Repeat calls to swap() should not affect index values a second time. "swap(1,2); swap(1,2)" should not be the same as "swap(2,1)." (This also affects Phaser 1.1.6.)
This commit is contained in:
parent
a07cf894a0
commit
5fcc8db8a4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue