From b70b480d09200f80a797e01f1e8d42857737b196 Mon Sep 17 00:00:00 2001 From: Andrew Start Date: Sat, 5 Nov 2016 13:13:34 -0400 Subject: [PATCH] Fixed code formatting. --- src/Emitter.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Emitter.js b/src/Emitter.js index 46ffa087..121d857d 100644 --- a/src/Emitter.js +++ b/src/Emitter.js @@ -852,11 +852,14 @@ //set up the start and end values p.startAlpha = this.startAlpha; p.endAlpha = this.endAlpha; - if(this.minimumSpeedMultiplier != 1) { + if(this.minimumSpeedMultiplier != 1) + { rand = Math.random() * (1 - this.minimumSpeedMultiplier) + this.minimumSpeedMultiplier; p.startSpeed = this.startSpeed * rand; p.endSpeed = this.endSpeed * rand; - } else { + } + else + { p.startSpeed = this.startSpeed; p.endSpeed = this.endSpeed; }