Merge pull request #7533 from furo321/correct-precision-sixup

Set correct race precision value for 0.7
This commit is contained in:
heinrich5991 2023-11-23 17:52:06 +00:00 committed by GitHub
commit c50944400a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}