mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 17:58:23 +00:00
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
This commit is contained in:
parent
15908ce271
commit
d1ece18c93
1 changed files with 1 additions and 1 deletions
|
@ -1200,7 +1200,7 @@ var TilemapLayer = new Class({
|
|||
*
|
||||
* @return {this} This Tilemap Layer object.
|
||||
*/
|
||||
weightedRandomize: function (tileX, tileY, width, height, weightedIndexes)
|
||||
weightedRandomize: function (weightedIndexes, tileX, tileY, width, height)
|
||||
{
|
||||
TilemapComponents.WeightedRandomize(tileX, tileY, width, height, weightedIndexes, this.layer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue