File tree 1 file changed +2
-1
lines changed
src/gameobjects/particles
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var GameObject = require('../GameObject');
17
17
var GetFastValue = require ( '../../utils/object/GetFastValue' ) ;
18
18
var GetRandom = require ( '../../utils/array/GetRandom' ) ;
19
19
var GravityWell = require ( './GravityWell' ) ;
20
+ var HasAll = require ( '../../utils/object/HasAll' ) ;
20
21
var HasAny = require ( '../../utils/object/HasAny' ) ;
21
22
var HasValue = require ( '../../utils/object/HasValue' ) ;
22
23
var Inflate = require ( '../../geom/rectangle/Inflate' ) ;
@@ -978,7 +979,7 @@ var ParticleEmitter = new Class({
978
979
979
980
this . acceleration = ( this . accelerationX !== 0 || this . accelerationY !== 0 ) ;
980
981
981
- this . moveTo = ( this . moveToX !== 0 && this . moveToY !== 0 ) ;
982
+ this . moveTo = HasAll ( config , [ 'moveToX' , ' moveToY' ] ) ;
982
983
983
984
// Special 'speed' override
984
985
You can’t perform that action at this time.
0 commit comments