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:
bors[bot] 2020-06-20 17:25:02 +00:00 committed by GitHub
commit 4dd72df777
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

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

View file

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