fix inactive voice and warnings not disappearing
This commit is contained in:
parent
f04938bc1e
commit
bcc417c9cf
|
|
@ -706,7 +706,7 @@ namespace HeavenStudio.Games
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (songPos >= wordClearTime && songPos < wordStartTime) {
|
if (songPos >= wordClearTime || songPos < wordStartTime) {
|
||||||
Word.Play("NoPose");
|
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)
|
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 {
|
double clear = type switch {
|
||||||
<= (int)HitThree.HitFour => beat + 4f,
|
<= (int)HitThree.HitFour => beat + 4f,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue