From a736229c18858d7235f67fd650bd85efe9d3a481 Mon Sep 17 00:00:00 2001 From: BlueNutterfly Date: Mon, 12 Nov 2018 11:08:09 +0400 Subject: [PATCH] Only reset ball speed to default when launching normally --- core/src/com/me/brickbuster/entity/Ball.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/me/brickbuster/entity/Ball.java b/core/src/com/me/brickbuster/entity/Ball.java index 97a0daa..9a6952a 100644 --- a/core/src/com/me/brickbuster/entity/Ball.java +++ b/core/src/com/me/brickbuster/entity/Ball.java @@ -101,8 +101,8 @@ public class Ball extends Entity { } else { float angle = MathUtils.random(MathUtils.PI/2) + MathUtils.PI/4; direction = new Vector2(MathUtils.cos(angle), MathUtils.sin(angle)); + speed = DEFAULT_SPEED; } - speed = DEFAULT_SPEED; isStuck = false; }