From bcc417c9cfe5e4fd7c8a276f7bab4435d1002654 Mon Sep 17 00:00:00 2001 From: AstrlJelly Date: Tue, 10 Oct 2023 23:41:37 -0400 Subject: [PATCH] fix inactive voice and warnings not disappearing --- Assets/Scripts/Games/KarateMan/KarateMan.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Games/KarateMan/KarateMan.cs b/Assets/Scripts/Games/KarateMan/KarateMan.cs index f97e48560..253e9c190 100644 --- a/Assets/Scripts/Games/KarateMan/KarateMan.cs +++ b/Assets/Scripts/Games/KarateMan/KarateMan.cs @@ -706,7 +706,7 @@ namespace HeavenStudio.Games break; } - if (songPos >= wordClearTime && songPos < wordStartTime) { + if (songPos >= wordClearTime || songPos < wordStartTime) { Word.Play("NoPose"); } @@ -780,10 +780,10 @@ namespace HeavenStudio.Games public void DoWord(double beat, double length, int type, bool pitchVoice, float forcePitch, bool customLength, bool doSound = true) { - Word.Play(DoWordSound(beat, length, type, customLength, pitchVoice, forcePitch, doSound)); + Word.Play(DoWordSound(beat, length, type, pitchVoice, forcePitch, customLength, doSound)); } - public static string DoWordSound(double beat, double length, int type, bool customLength, bool pitchVoice = false, float forcePitch = 1, bool doSound = true) + public static string DoWordSound(double beat, double length, int type, bool pitchVoice = false, float forcePitch = 1, bool customLength = false, bool doSound = true) { double clear = type switch { <= (int)HitThree.HitFour => beat + 4f,