apply paused time to GetCurrentRaceTime

Moros Smith 3 months ago
parent 36a9b45557
commit 96476d1690
  1. 2
      src/HamsterNet.cpp

@ -301,7 +301,7 @@ bool HamsterNet::StartRace(const std::string& map)
int HamsterNet::GetCurrentRaceTime(){
std::chrono::duration<double, std::milli> duration = std::chrono::system_clock::now() - m_tp1;
return static_cast<int>(duration.count());
return static_cast<int>(duration.count() - m_pause_time);
}
std::pair<HamsterNet::FinishTime,bool> HamsterNet::FinishRace()

Loading…
Cancel
Save