mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Send the new is ddnet message in 0.7 connections
We already sent the legacy is ddnet message and so far the ddnet protocol over 0.7 seems to work fine. But for completeness and correctness it is now also sending the new ddnet version net message.
This commit is contained in:
parent
afd1bd9cde
commit
21507b51f1
|
@ -210,6 +210,12 @@ int CClient::SendMsgActive(CMsgPacker *pMsg, int Flags)
|
|||
|
||||
void CClient::SendInfo(int Conn)
|
||||
{
|
||||
CMsgPacker MsgVer(NETMSG_CLIENTVER, true);
|
||||
MsgVer.AddRaw(&m_ConnectionId, sizeof(m_ConnectionId));
|
||||
MsgVer.AddInt(GameClient()->DDNetVersion());
|
||||
MsgVer.AddString(GameClient()->DDNetVersionStr());
|
||||
SendMsg(Conn, &MsgVer, MSGFLAG_VITAL);
|
||||
|
||||
if(IsSixup())
|
||||
{
|
||||
CMsgPacker Msg(NETMSG_INFO, true);
|
||||
|
@ -219,11 +225,6 @@ void CClient::SendInfo(int Conn)
|
|||
SendMsg(Conn, &Msg, MSGFLAG_VITAL | MSGFLAG_FLUSH);
|
||||
return;
|
||||
}
|
||||
CMsgPacker MsgVer(NETMSG_CLIENTVER, true);
|
||||
MsgVer.AddRaw(&m_ConnectionId, sizeof(m_ConnectionId));
|
||||
MsgVer.AddInt(GameClient()->DDNetVersion());
|
||||
MsgVer.AddString(GameClient()->DDNetVersionStr());
|
||||
SendMsg(Conn, &MsgVer, MSGFLAG_VITAL);
|
||||
|
||||
CMsgPacker Msg(NETMSG_INFO, true);
|
||||
Msg.AddString(GameClient()->NetVersion());
|
||||
|
|
Loading…
Reference in a new issue