We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a07cf89 + 3b7039a commit 386ee19Copy full SHA for 386ee19
1 file changed
src/tilemap/Tilemap.js
@@ -1114,7 +1114,7 @@ Phaser.Tilemap.prototype = {
1114
/**
1115
* Scans the given area for tiles with an index matching tileA and swaps them with tileB.
1116
*
1117
- * @method Phaser.Tilemap#swapTile
+ * @method Phaser.Tilemap#swap
1118
* @param {number} tileA - First tile index.
1119
* @param {number} tileB - Second tile index.
1120
* @param {number} x - X position of the top left of the area to operate one, given in tiles, not pixels.
@@ -1157,7 +1157,7 @@ Phaser.Tilemap.prototype = {
1157
{
1158
this._results[index].index = this._tempB;
1159
}
1160
- else if (value.index === this._tempB)
+ if (value.index === this._tempB)
1161
1162
this._results[index].index = this._tempA;
1163
0 commit comments