From 2634fd49f025869d1f8fc2aef2532328c7dd3050 Mon Sep 17 00:00:00 2001 From: "born a rick, raised a morty, died a jerry" Date: Thu, 14 May 2020 14:34:11 -0400 Subject: [PATCH] new jack values must be added after moving window shifts --- src/Etterna/Globals/MinaCalc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Etterna/Globals/MinaCalc.cpp b/src/Etterna/Globals/MinaCalc.cpp index 5ea58022b9..7d2d33ce48 100644 --- a/src/Etterna/Globals/MinaCalc.cpp +++ b/src/Etterna/Globals/MinaCalc.cpp @@ -524,15 +524,16 @@ Calc::SequenceJack(const Finger& f, int track, int mode) // taps in interval for (auto& ms : itv) { time += ms; - window_taps[window_size - 1] = ms; if (dbg) { std::cout << "time now: " << time / 1000.f << std::endl; std::cout << "ms now: " << ms << std::endl; } - // update most recent values + // shift older values back for (size_t i = 1; i < window_taps.size(); ++i) window_taps[i - 1] = window_taps[i]; + // add new value + window_taps[window_size - 1] = ms; float comp_time = 0.f; float hit_window_buffer = 380.f;