Stomp: Fixed issues with starting a march at the same time as a game switch.

This commit is contained in:
Jenny Crowe 2022-03-02 19:19:45 -07:00
parent 273608ea6e
commit f6966d4e35

View file

@ -68,9 +68,10 @@ namespace RhythmHeavenMania.Games.CropStomp
for (int i = 0; i < marchStarts.Count; i++)
{
var sampleBeat = marchStarts[i].beat;
if (cond.songPositionInBeats < sampleBeat)
if (cond.songPositionInBeats <= sampleBeat + 0.25f) // 0.25-beat buffer in case the start marching event is directly next to the game switch event.
{
startBeat = sampleBeat;
break;
}
}