mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
Merge pull request #4455 from galman33/patch-1
Fixed Phaser.Actions.Spread ignoring the min parameter
This commit is contained in:
commit
9514cff177
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue