Skip to content

Commit

Permalink
WAIT I FORGOT THIS
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Oct 21, 2023
1 parent 29e52eb commit 9aeec84
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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')
{
Expand Down

0 comments on commit 9aeec84

Please sign in to comment.