From 36a9b45557467abe97cb501795748a5acba30791 Mon Sep 17 00:00:00 2001 From: Moros Smith Date: Sun, 25 Aug 2024 20:32:55 -0400 Subject: [PATCH] do the pause math when finishing the race --- src/HamsterNet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HamsterNet.cpp b/src/HamsterNet.cpp index d82cefc..9851f5a 100644 --- a/src/HamsterNet.cpp +++ b/src/HamsterNet.cpp @@ -310,7 +310,8 @@ std::pair HamsterNet::FinishRace() std::chrono::duration duration = m_tp2 - m_tp1; m_time = static_cast(duration.count()); - return {m_time,(hamsterNet__finishRace(m_map.c_str(), m_color.c_str(), m_time) == 1)}; + return {m_time,(hamsterNet__finishRace(m_map.c_str(), m_color.c_str(), m_time - m_pause_time) == 1)}; +} bool HamsterNet::StartPause() {