From 865afa613b0fb395f8bd771707872600bbc10743 Mon Sep 17 00:00:00 2001 From: Learath Date: Sat, 20 Jun 2020 17:30:58 +0300 Subject: [PATCH] Ingame time is in milliseconds --- src/game/server/gamecontroller.cpp | 2 +- src/game/server/player.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/server/gamecontroller.cpp b/src/game/server/gamecontroller.cpp index 3f891b6ff..0858d5ec9 100644 --- a/src/game/server/gamecontroller.cpp +++ b/src/game/server/gamecontroller.cpp @@ -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; } } diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp index 7da3dd99c..d15466090 100644 --- a/src/game/server/player.cpp +++ b/src/game/server/player.cpp @@ -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; }