From 9aeec842719b846fafdf74840d98f9c9386b6c57 Mon Sep 17 00:00:00 2001 From: JordanSantiagoYT Date: Sat, 21 Oct 2023 13:03:34 -0400 Subject: [PATCH] WAIT I FORGOT THIS --- source/PlayState.hx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 63e38e315ae..9aa3c5cbe01 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -277,6 +277,8 @@ class PlayState extends MusicBeatState public var comboMultiplier:Float = 1; private var allSicks:Bool = true; + private var lerpingScore:Bool = false; + private var generatedMusic:Bool = false; public var endingSong:Bool = false; public var startingSong:Bool = false; @@ -5163,9 +5165,15 @@ if (ClientPrefs.showNPS) { compactUpdateFrame = 0; scoreTxtUpdateFrame = 0; - shownScore = FlxMath.lerp(shownScore, songScore, .4/(ClientPrefs.framerate / 60)); - if (Math.abs(shownScore - songScore) <= 10) + if (shownScore != songScore && ClientPrefs.hudType == 'JS Engine' && Math.abs(shownScore - songScore) >= 10) { + shownScore = FlxMath.lerp(shownScore, songScore, 0.4 / (ClientPrefs.framerate / 60)); + lerpingScore = true; // Indicate that lerping is in progress + } else { shownScore = songScore; + lerpingScore = false; + } + + if (lerpingScore) updateScore(); if (ClientPrefs.smoothHealth && ClientPrefs.smoothHealthType == 'Indie Cross') {