mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
Merge #2297
2297: Ingame time is in milliseconds on 0.7 r=def- a=Learath2 Co-authored-by: Learath <learath2@gmail.com>
This commit is contained in:
commit
4dd72df777
|
@ -581,7 +581,7 @@ void IGameController::Snap(int SnappingClient)
|
|||
return;
|
||||
|
||||
pRaceData->m_BestTime = round_to_int(m_CurrentRecord * 1000);
|
||||
pRaceData->m_Precision = 3;
|
||||
pRaceData->m_Precision = 0;
|
||||
pRaceData->m_RaceFlags = protocol7::RACEFLAG_HIDE_KILLMSG | protocol7::RACEFLAG_KEEP_WANTED_WEAPON;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -371,7 +371,9 @@ void CPlayer::Snap(int SnappingClient)
|
|||
pPlayerInfo->m_PlayerFlags = PlayerFlags_SixToSeven(m_PlayerFlags);
|
||||
if(Server()->ClientAuthed(m_ClientID))
|
||||
pPlayerInfo->m_PlayerFlags |= protocol7::PLAYERFLAG_ADMIN;
|
||||
pPlayerInfo->m_Score = Score == -9999 ? -1 : -Score;
|
||||
|
||||
// Times are in milliseconds for 0.7
|
||||
pPlayerInfo->m_Score = Score == -9999 ? -1 : -Score * 1000;
|
||||
pPlayerInfo->m_Latency = Latency;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue