[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); rs.Read(pid);
switch (pid) switch (pid)
{ {
case ID_SND_RECEIPT_ACKED:
case ID_CONNECTION_ATTEMPT_FAILED: case ID_CONNECTION_ATTEMPT_FAILED:
case ID_CONNECTION_REQUEST_ACCEPTED: case ID_CONNECTION_REQUEST_ACCEPTED:
case ID_DISCONNECTION_NOTIFICATION: 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()); LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Client at %s has lost connection", packet->systemAddress.ToString());
disconnectPlayer(packet->guid); disconnectPlayer(packet->guid);
break; break;
case ID_SND_RECEIPT_ACKED:
case ID_CONNECTED_PING: case ID_CONNECTED_PING:
case ID_UNCONNECTED_PING: case ID_UNCONNECTED_PING:
break; break;

Loading…
Cancel
Save