mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Partially Revert "Refactoring" to keep DDRace compatible with SushiTee's Stuff
This partially reverts commit 505a5b4172
.
This commit is contained in:
parent
02c68dea79
commit
8d88f5d541
|
@ -294,7 +294,7 @@ Messages = [
|
|||
NetStringStrict("m_Value"),
|
||||
]),
|
||||
|
||||
NetMessage("Cl_IsDDRace", []),
|
||||
NetMessage("Cl_IsRace", []),
|
||||
|
||||
NetMessage("Cl_TeamsState", [
|
||||
NetIntAny("m_Tee0"),
|
||||
|
|
|
@ -847,7 +847,7 @@ void CGameClient::OnNewSnapshot()
|
|||
|
||||
if(!m_DDRaceMsgSent && m_Snap.m_pLocalInfo)
|
||||
{
|
||||
CNetMsg_Cl_IsDDRace Msg;
|
||||
CNetMsg_Cl_IsRace Msg;
|
||||
Client()->SendPackMsg(&Msg, MSGFLAG_VITAL);
|
||||
m_DDRaceMsgSent = true;
|
||||
}
|
||||
|
|
|
@ -958,7 +958,7 @@ void CGameContext::OnMessage(int MsgId, CUnpacker *pUnpacker, int ClientId)
|
|||
SendBroadcast(aBuf, ClientId);
|
||||
}
|
||||
}
|
||||
else if (MsgId == NETMSGTYPE_CL_ISDDRACE)
|
||||
else if (MsgId == NETMSGTYPE_CL_ISRACE)
|
||||
{
|
||||
pPlayer->m_IsUsingDDRaceClient = true;
|
||||
char aBuf[128];
|
||||
|
|
Loading…
Reference in a new issue