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:
Robert Müller 2024-05-01 13:34:15 +02:00
parent 2cd877f0ce
commit 20c28f78ce

View file

@ -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);