This commit is contained in:
Michael Hadley 2017-12-03 15:31:05 -06:00
parent 5e69f0e51f
commit 55492e8940

View file

@ -1214,7 +1214,7 @@ var Tilemap = new Class({
weightedRandomize: function (tileX, tileY, width, height, weightedIndexes, layer)
{
layer = this.getLayer(layer);
if (this._isStaticCall(layer, 'randomize')) { return this; }
if (this._isStaticCall(layer, 'weightedRandomize')) { return this; }
if (layer !== null)
{
TilemapComponents.WeightedRandomize(tileX, tileY, width, height, weightedIndexes, layer);