From d63e132d714b65fd51fb372bd4fdc842bc2cb6fb Mon Sep 17 00:00:00 2001 From: MtH Date: Mon, 29 Mar 2021 17:18:25 +0200 Subject: [PATCH] week score lerp fix INSPIRED BY PR #447 BY @jvc2 https://github.com/ninjamuffin99/Funkin/pull/447 --- source/StoryMenuState.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 3c9d629ec..23bbee0bb 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -227,6 +227,9 @@ class StoryMenuState extends MusicBeatState // scoreText.setFormat('VCR OSD Mono', 32); lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.5)); + if (Math.abs(lerpScore - intendedScore) <= 10) + lerpScore = intendedScore; + scoreText.text = "WEEK SCORE:" + lerpScore; txtWeekTitle.text = weekNames[curWeek].toUpperCase();