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() {