Fix top time not being displayed on old servers

Fix #3599.

(Forgot to check for both NETMSG_RECORD and NETMSG_RECORDLEGACY in one
place.)
This commit is contained in:
heinrich5991 2021-02-11 23:33:50 +01:00
parent 32c8c3e894
commit e1448bebc7

View file

@ -46,7 +46,7 @@ void CScoreboard::OnRelease()
void CScoreboard::OnMessage(int MsgType, void *pRawMsg) void CScoreboard::OnMessage(int MsgType, void *pRawMsg)
{ {
if(MsgType == NETMSGTYPE_SV_RECORD) if(MsgType == NETMSGTYPE_SV_RECORD || MsgType == NETMSGTYPE_SV_RECORDLEGACY)
{ {
CNetMsg_Sv_Record *pMsg = (CNetMsg_Sv_Record *)pRawMsg; CNetMsg_Sv_Record *pMsg = (CNetMsg_Sv_Record *)pRawMsg;
m_ServerRecord = (float)pMsg->m_ServerTimeBest / 100; m_ServerRecord = (float)pMsg->m_ServerTimeBest / 100;