diff --git a/datasrc/network.py b/datasrc/network.py index b201781a4..b049c603a 100644 --- a/datasrc/network.py +++ b/datasrc/network.py @@ -469,7 +469,7 @@ Messages = [ NetIntRange("m_Finish", 0, 1), ]), - NetMessageEx("Sv_Record", "weird-record@netmsg.ddnet.tw", [ + NetMessageEx("Sv_Record", "record@netmsg.ddnet.tw", [ NetIntAny("m_ServerTimeBest"), NetIntAny("m_PlayerTimeBest"), ]), diff --git a/src/game/client/components/hud.cpp b/src/game/client/components/hud.cpp index dec77c5b0..b092534e5 100644 --- a/src/game/client/components/hud.cpp +++ b/src/game/client/components/hud.cpp @@ -882,7 +882,7 @@ void CHud::OnMessage(int MsgType, void *pRawMsg) CNetMsg_Sv_Record *pMsg = (CNetMsg_Sv_Record *)pRawMsg; // NETMSGTYPE_SV_RACETIME on old race servers - if(GameClient()->m_GameInfo.m_DDRaceRecordMessage) + if(MsgType == NETMSGTYPE_SV_RECORDLEGACY && GameClient()->m_GameInfo.m_DDRaceRecordMessage) { m_DDRaceTimeReceived = true; @@ -896,7 +896,7 @@ void CHud::OnMessage(int MsgType, void *pRawMsg) m_CheckpointTick = Client()->GameTick(g_Config.m_ClDummy); } } - else if(GameClient()->m_GameInfo.m_RaceRecordMessage) + else if(MsgType == NETMSGTYPE_SV_RECORD || GameClient()->m_GameInfo.m_RaceRecordMessage) { m_ServerRecord = (float)pMsg->m_ServerTimeBest / 100; m_PlayerRecord[g_Config.m_ClDummy] = (float)pMsg->m_PlayerTimeBest / 100; diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index bc607f6ad..19840313a 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -46,7 +46,7 @@ void CScoreboard::OnRelease() 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; m_ServerRecord = (float)pMsg->m_ServerTimeBest / 100;