mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
Remove unnecessary check excluding packets from wrong server
This is already checked for all connection-oriented packets when feeding the connection in
952d3f6631/src/engine/shared/network_conn.cpp (L260-L266)
Closes #8285.
This commit is contained in:
parent
2cd877f0ce
commit
20c28f78ce
|
@ -1301,12 +1301,6 @@ static CServerCapabilities GetServerCapabilities(int Version, int Flags)
|
|||
|
||||
void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy)
|
||||
{
|
||||
// only allow packets from the server we actually want
|
||||
if(net_addr_comp(&pPacket->m_Address, &ServerAddress()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
CUnpacker Unpacker;
|
||||
Unpacker.Reset(pPacket->m_pData, pPacket->m_DataSize);
|
||||
CMsgPacker Packer(NETMSG_EX, true);
|
||||
|
|
Loading…
Reference in a new issue