Merge pull request #4455 from galman33/patch-1

Fixed Phaser.Actions.Spread ignoring the min parameter
This commit is contained in:
Richard Davey 2019-04-05 17:03:19 +01:00 committed by GitHub
commit 9514cff177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,14 +40,14 @@ var Spread = function (items, property, min, max, inc)
{
for (i = 0; i < items.length; i++)
{
items[i][property] += i * step;
items[i][property] += i * step + min;
}
}
else
{
for (i = 0; i < items.length; i++)
{
items[i][property] = i * step;
items[i][property] = i * step + min;
}
}