From f7d065ffc79f1d095338d9457e324b2549cf46ea Mon Sep 17 00:00:00 2001 From: Spikatrix <12792882+Spikatrix@users.noreply.github.com> Date: Sun, 18 Jul 2021 12:22:55 +0530 Subject: [PATCH] Recompute draw start position on scorebar reset --- core/src/com/cg/zoned/ScoreBar.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/cg/zoned/ScoreBar.java b/core/src/com/cg/zoned/ScoreBar.java index 112842a..0a1acc2 100644 --- a/core/src/com/cg/zoned/ScoreBar.java +++ b/core/src/com/cg/zoned/ScoreBar.java @@ -53,6 +53,7 @@ public void reset() { for (int i = 0; i < size; i++) { scoreBarCurrentWidth[i] = scoreBarTargetWidth[i] = 0; } + computeDrawStartPos(); } public void resize(int width, int height) {