From 3904de575edff6dec57f16dc8b92a4bbbd2fd9e6 Mon Sep 17 00:00:00 2001 From: WilliamQiufeng Date: Sun, 22 Sep 2024 22:06:04 +0800 Subject: [PATCH] Don't count the semicolon as a row to solve the wrong rhythm in last measure --- Quaver.API/Maps/Parsers/Stepmania/StepFile.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs b/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs index fbd5313af..5bd2e55d6 100644 --- a/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs +++ b/Quaver.API/Maps/Parsers/Stepmania/StepFile.cs @@ -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(",")) {