Skip to content

Commit

Permalink
Merge pull request #187 from WilliamQiufeng/fix-sm-last-measure
Browse files Browse the repository at this point in the history
[StepMania] Don't count the semicolon as a row to solve the wrong rhythm in the last measure
  • Loading branch information
Swan authored Oct 24, 2024
2 parents a062f75 + 3904de5 commit b2e768b
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 b2e768b

Please sign in to comment.