photonstorm/phaser — pull request #544 by videlais (2014-03-12 03:43:49+00:00)
Title: 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)."

Removing the "else" in swapHandler fixes this.

(This also affects Phaser 1.1.6.)