From f9f711a1794586eb9e3dc721484235490ea58cbb Mon Sep 17 00:00:00 2001
From: Cameron Taylor <cameron.taylor.ninja@gmail.com>
Date: Tue, 3 May 2022 13:09:02 -0400
Subject: [PATCH] charting editor head fix

---
 source/funkin/charting/ChartingState.hx | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/source/funkin/charting/ChartingState.hx b/source/funkin/charting/ChartingState.hx
index ba34f2281..3f19edc07 100644
--- a/source/funkin/charting/ChartingState.hx
+++ b/source/funkin/charting/ChartingState.hx
@@ -111,6 +111,9 @@ class ChartingState extends MusicBeatState
 		leftIcon.setGraphicSize(0, 45);
 		rightIcon.setGraphicSize(0, 45);
 
+		leftIcon.autoUpdate = false;
+		rightIcon.autoUpdate = false;
+
 		add(leftIcon);
 		add(rightIcon);
 
@@ -1133,16 +1136,22 @@ class ChartingState extends MusicBeatState
 			leftIcon.characterId = (_song.player1);
 			rightIcon.characterId = (_song.player2);
 
-			leftIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
-			rightIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
+			// leftIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
+			// rightIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
+
+			leftIcon.playAnimation(p1Muted ? LOSING : IDLE);
+			rightIcon.playAnimation(p2Muted ? LOSING : IDLE);
 		}
 		else
 		{
 			leftIcon.characterId = (_song.player2);
 			rightIcon.characterId = (_song.player1);
 
-			leftIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
-			rightIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
+			leftIcon.playAnimation(p2Muted ? LOSING : IDLE);
+			rightIcon.playAnimation(p1Muted ? LOSING : IDLE);
+
+			// leftIcon.animation.curAnim.curFrame = p2Muted ? 1 : 0;
+			// rightIcon.animation.curAnim.curFrame = p1Muted ? 1 : 0;
 		}
 		leftIcon.setGraphicSize(0, 45);
 		rightIcon.setGraphicSize(0, 45);