mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Set correct race precision value for 0.7
This commit is contained in:
parent
6fc27bea8c
commit
36a029c622
|
@ -641,7 +641,7 @@ void IGameController::Snap(int SnappingClient)
|
|||
return;
|
||||
|
||||
pRaceData->m_BestTime = round_to_int(m_CurrentRecord * 1000);
|
||||
pRaceData->m_Precision = 0;
|
||||
pRaceData->m_Precision = 2;
|
||||
pRaceData->m_RaceFlags = protocol7::RACEFLAG_HIDE_KILLMSG | protocol7::RACEFLAG_KEEP_WANTED_WEAPON;
|
||||
}
|
||||
|
||||
|
|
|
@ -379,7 +379,7 @@ void CPlayer::Snap(int SnappingClient)
|
|||
pPlayerInfo->m_PlayerFlags |= protocol7::PLAYERFLAG_ADMIN;
|
||||
|
||||
// Times are in milliseconds for 0.7
|
||||
pPlayerInfo->m_Score = Score == -9999 ? -1 : -Score * 1000;
|
||||
pPlayerInfo->m_Score = m_Score.has_value() ? GameServer()->Score()->PlayerData(id)->m_BestTime * 1000 : -1;
|
||||
pPlayerInfo->m_Latency = Latency;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue