[Server] Fix "wrong packet with id: 14"

0.6.1
Koncord 7 years ago
parent da7253bb57
commit 74c9a26d16

@ -123,6 +123,7 @@ bool MasterClient::Process(RakNet::Packet *packet)
rs.Read(pid);
switch (pid)
{
case ID_SND_RECEIPT_ACKED:
case ID_CONNECTION_ATTEMPT_FAILED:
case ID_CONNECTION_REQUEST_ACCEPTED:
case ID_DISCONNECTION_NOTIFICATION:

@ -464,6 +464,7 @@ int Networking::mainLoop()
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Client at %s has lost connection", packet->systemAddress.ToString());
disconnectPlayer(packet->guid);
break;
case ID_SND_RECEIPT_ACKED:
case ID_CONNECTED_PING:
case ID_UNCONNECTED_PING:
break;

Loading…
Cancel
Save