Skip to content

Commit 6a3189e

Browse files
mwinkensPointer31
authored andcommitted
switch map best time interpretation dynamically on send time infos
1 parent 61a2c5b commit 6a3189e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/game/client/components/scoreboard.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,12 @@ void CScoreboard::RenderTitleScore(CUIRect ScoreLabel, int Team, float TitleFont
179179
{
180180
// map best
181181
char aScore[128] = "";
182-
if(GameClient()->m_MapBestTimeSeconds != FinishTime::UNSET)
182+
const CNetObj_GameInfo *pGameInfoObj = GameClient()->m_Snap.m_pGameInfoObj;
183+
const bool TimeScore = GameClient()->m_GameInfo.m_TimeScore;
184+
const bool Race7 = Client()->IsSixup() && pGameInfoObj && pGameInfoObj->m_GameFlags & protocol7::GAMEFLAG_RACE;
185+
if(GameClient()->m_ReceivedDDNetPlayerFinishTimes || TimeScore || Race7)
183186
{
184-
if(GameClient()->m_MapBestTimeSeconds != FinishTime::UNSET)
187+
if(GameClient()->m_MapBestTimeSeconds != FinishTime::NOT_FINISHED_MILLIS && GameClient()->m_MapBestTimeSeconds != FinishTime::UNSET)
185188
{
186189
Ui()->RenderTime(ScoreLabel,
187190
TitleFontSize,

0 commit comments

Comments
 (0)