From 295cf52d2f78f1b2910adcc4c1c429e2a0c7902c Mon Sep 17 00:00:00 2001 From: NyxieFemboy Date: Mon, 30 Sep 2024 23:31:27 -0400 Subject: [PATCH] fixed Beats Per Measure not being updated based on sectionBeats --- source/funkin/backend/chart/FNFLegacyParser.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/funkin/backend/chart/FNFLegacyParser.hx b/source/funkin/backend/chart/FNFLegacyParser.hx index ede54e183..26334376a 100644 --- a/source/funkin/backend/chart/FNFLegacyParser.hx +++ b/source/funkin/backend/chart/FNFLegacyParser.hx @@ -56,6 +56,9 @@ class FNFLegacyParser { continue; // Yoshi Engine charts crash fix } + // Update beatsPerMeasure based on sectionBeats (this was never done before and sectionBeats was entirely unused -other nex) + beatsPerMeasure = section.sectionBeats != null ? section.sectionBeats : data.beatsPerMeasure.getDefault(4); + if (camFocusedBF != (camFocusedBF = section.mustHitSection)) { result.events.push({ time: curTime,