From 96476d16903ecdebbd612608e7f1ef146d5a1fb3 Mon Sep 17 00:00:00 2001 From: Moros Smith Date: Sun, 25 Aug 2024 20:34:50 -0400 Subject: [PATCH] apply paused time to GetCurrentRaceTime --- src/HamsterNet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HamsterNet.cpp b/src/HamsterNet.cpp index 9851f5a..855b110 100644 --- a/src/HamsterNet.cpp +++ b/src/HamsterNet.cpp @@ -301,7 +301,7 @@ bool HamsterNet::StartRace(const std::string& map) int HamsterNet::GetCurrentRaceTime(){ std::chrono::duration duration = std::chrono::system_clock::now() - m_tp1; - return static_cast(duration.count()); + return static_cast(duration.count() - m_pause_time); } std::pair HamsterNet::FinishRace()