Skip to content

Commit

Permalink
Don't count the semicolon as a row to solve the wrong rhythm in last …
Browse files Browse the repository at this point in the history
…measure
  • Loading branch information
WilliamQiufeng committed Sep 22, 2024
1 parent 08b4345 commit 3904de5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Quaver.API/Maps/Parsers/Stepmania/StepFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ private void Parse(string[] lines)
else if (currentChart != null && currentChart.GrooveRadarValues != null &&
!string.IsNullOrEmpty(trimmedLine))
{
// Last line is a ';', skip that as we would add a new row to the measure otherwise
// which would break the last measure
if (trimmedLine.StartsWith(";"))
continue;

// Denotes a new measure
if (trimmedLine.StartsWith(","))
{
Expand Down

0 comments on commit 3904de5

Please sign in to comment.