mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Require truthy random
value for randomness
This commit is contained in:
parent
77859b1cdf
commit
df3953e604
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ var EmitterOp = new Class({
|
|||
this.start = this.has(value, 'start') ? value.start : value.min;
|
||||
this.end = this.has(value, 'end') ? value.end : value.max;
|
||||
|
||||
var isRandom = (this.hasBoth(value, 'min', 'max') || this.has(value, 'random'));
|
||||
var isRandom = (this.hasBoth(value, 'min', 'max') || !!value.random);
|
||||
|
||||
// A random starting value (using 'min | max' instead of 'start | end' automatically implies a random value)
|
||||
|
||||
|
|
Loading…
Reference in a new issue