mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
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:
parent
32c8c3e894
commit
e1448bebc7
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue