mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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;
|
return;
|
||||||
|
|
||||||
pRaceData->m_BestTime = round_to_int(m_CurrentRecord * 1000);
|
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;
|
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);
|
pPlayerInfo->m_PlayerFlags = PlayerFlags_SixToSeven(m_PlayerFlags);
|
||||||
if(Server()->ClientAuthed(m_ClientID))
|
if(Server()->ClientAuthed(m_ClientID))
|
||||||
pPlayerInfo->m_PlayerFlags |= protocol7::PLAYERFLAG_ADMIN;
|
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;
|
pPlayerInfo->m_Latency = Latency;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue