Skip to content

Commit

Permalink
Fix #86 - bug in ring spawner.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewstart committed Aug 19, 2018
1 parent a996999 commit f5e37a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ export default class Emitter
p.rotation = Math.random() * (this.maxStartRotation - this.minStartRotation) +
this.minStartRotation + this.rotation;
//place the particle at a random radius in the ring
if(spawnCircle.minRadius == spawnCircle.radius)
if(spawnCircle.minRadius !== spawnCircle.radius)
{
helperPoint.x = Math.random() * (spawnCircle.radius - spawnCircle.minRadius) +
spawnCircle.minRadius;
Expand Down

0 comments on commit f5e37a7

Please sign in to comment.