mirror of
https://github.com/sigonasr2/hamster.git
synced 2025-04-18 06:39:39 -05:00
do the pause math when finishing the race
This commit is contained in:
parent
2d4036669d
commit
36a9b45557
@ -310,7 +310,8 @@ std::pair<HamsterNet::FinishTime,bool> HamsterNet::FinishRace()
|
||||
std::chrono::duration<double, std::milli> duration = m_tp2 - m_tp1;
|
||||
m_time = static_cast<int>(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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user