Skip to content

Commit d1ece18

Browse files
committed
The method TilemapLayer.weightedRandomize has changed so that the parameter weightedIndexes is now first in the method and is non-optional. Previously, it was the 5th parameter and incorrectly flagged as optional. This change was made to the docs but not the parameters, but now works according to the docs
1 parent 15908ce commit d1ece18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tilemaps/TilemapLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ var TilemapLayer = new Class({
12001200
*
12011201
* @return {this} This Tilemap Layer object.
12021202
*/
1203-
weightedRandomize: function (tileX, tileY, width, height, weightedIndexes)
1203+
weightedRandomize: function (weightedIndexes, tileX, tileY, width, height)
12041204
{
12051205
TilemapComponents.WeightedRandomize(tileX, tileY, width, height, weightedIndexes, this.layer);
12061206

0 commit comments

Comments
 (0)