From 458371627415bcec2bbb6bdb6e017cf4cee02b26 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Sat, 17 Feb 2024 21:49:42 +0100 Subject: [PATCH] Cleanup --- source/funkin/game/PlayState.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index ee9b9bc5..74d9c15c 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1069,8 +1069,6 @@ class PlayState extends MusicBeatState public inline function getIconRPC():String return SONG.meta.icon; - var __songPlaying:Bool = false; - var __wasAutoPause:Bool = false; @:dox(hide) override public function onFocus():Void { @@ -1185,8 +1183,10 @@ class PlayState extends MusicBeatState function updateIconPositions() { var iconOffset:Int = 26; - iconP1.x = healthBar.x + (healthBar.width * (FlxMath.remapToRange(healthBar.percent, 0, 100, 1, 0)) - iconOffset); - iconP2.x = healthBar.x + (healthBar.width * (FlxMath.remapToRange(healthBar.percent, 0, 100, 1, 0))) - (iconP2.width - iconOffset); + var center:Float = healthBar.x + healthBar.width * FlxMath.remapToRange(healthBar.percent, 0, 100, 1, 0); + + iconP1.x = center - iconOffset; + iconP2.x = center - (iconP2.width - iconOffset); health = FlxMath.bound(health, 0, maxHealth);