From f70cb4c6aa972bf951f60e34d7b5a2f53c14ea30 Mon Sep 17 00:00:00 2001 From: Michael Votaw Date: Wed, 21 Aug 2024 21:09:15 -0500 Subject: [PATCH] Jacks and Doublesteps don't count if they're preceded by a jump --- src/TechCounts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TechCounts.cpp b/src/TechCounts.cpp index 1cabc00374..64f1029bf1 100644 --- a/src/TechCounts.cpp +++ b/src/TechCounts.cpp @@ -134,7 +134,7 @@ void TechCounts::CalculateTechCountsFromRows(const std::vector */ // check for jacks and doublesteps - if(noteCount == 1) + if(noteCount == 1 && previousNoteCount == 1) { for (StepParity::Foot foot: StepParity::FEET) { @@ -145,7 +145,7 @@ void TechCounts::CalculateTechCountsFromRows(const std::vector if(previousFootPlacement[foot] == currentFootPlacement[foot]) { - if(previousNoteCount == 1 && currentRow.second - previousRow.second < JACK_CUTOFF) + if(currentRow.second - previousRow.second < JACK_CUTOFF) { out[TechCountsCategory_Jacks] += 1; }