mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +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"),
|
NetStringStrict("m_Value"),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
NetMessage("Cl_IsDDRace", []),
|
NetMessage("Cl_IsRace", []),
|
||||||
|
|
||||||
NetMessage("Cl_TeamsState", [
|
NetMessage("Cl_TeamsState", [
|
||||||
NetIntAny("m_Tee0"),
|
NetIntAny("m_Tee0"),
|
||||||
|
|
|
@ -847,7 +847,7 @@ void CGameClient::OnNewSnapshot()
|
||||||
|
|
||||||
if(!m_DDRaceMsgSent && m_Snap.m_pLocalInfo)
|
if(!m_DDRaceMsgSent && m_Snap.m_pLocalInfo)
|
||||||
{
|
{
|
||||||
CNetMsg_Cl_IsDDRace Msg;
|
CNetMsg_Cl_IsRace Msg;
|
||||||
Client()->SendPackMsg(&Msg, MSGFLAG_VITAL);
|
Client()->SendPackMsg(&Msg, MSGFLAG_VITAL);
|
||||||
m_DDRaceMsgSent = true;
|
m_DDRaceMsgSent = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -958,7 +958,7 @@ void CGameContext::OnMessage(int MsgId, CUnpacker *pUnpacker, int ClientId)
|
||||||
SendBroadcast(aBuf, ClientId);
|
SendBroadcast(aBuf, ClientId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (MsgId == NETMSGTYPE_CL_ISDDRACE)
|
else if (MsgId == NETMSGTYPE_CL_ISRACE)
|
||||||
{
|
{
|
||||||
pPlayer->m_IsUsingDDRaceClient = true;
|
pPlayer->m_IsUsingDDRaceClient = true;
|
||||||
char aBuf[128];
|
char aBuf[128];
|
||||||
|
|
Loading…
Reference in a new issue