fix: lobby timer

This commit is contained in:
2021-09-02 19:12:01 +02:00
parent fc9c07f041
commit c3edb96a1c
3 changed files with 3 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ void Lobby::OnPlayerJoin(std::uint8_t playerID){
if (m_Players.size() == 2){ // start timer if a second player join the match
m_StartTimerTime = utils::getTime();
m_Timer.reset();
sendTimeRemaining();
}
}