From 36a029c62210e631839eb300caf61bf4484f3378 Mon Sep 17 00:00:00 2001 From: furo Date: Thu, 23 Nov 2023 15:41:49 +0100 Subject: [PATCH] Set correct race precision value for 0.7 --- src/game/server/gamecontroller.cpp | 2 +- src/game/server/player.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index 93638f9cf..270dc6a0e 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -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; } diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp index 4007ff3af..de3ae840e 100644 --- a/src/game/server/player.cpp +++ b/src/game/server/player.cpp @@ -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; }