From 74c9a26d16b2f54ccff1d596115815544bc7077e Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 2 Sep 2017 14:01:01 +0800 Subject: [PATCH] [Server] Fix "wrong packet with id: 14" --- apps/openmw-mp/MasterClient.cpp | 1 + apps/openmw-mp/Networking.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/openmw-mp/MasterClient.cpp b/apps/openmw-mp/MasterClient.cpp index 306feb9fd..36de134e1 100644 --- a/apps/openmw-mp/MasterClient.cpp +++ b/apps/openmw-mp/MasterClient.cpp @@ -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: diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 2b8da2b92..47091c0f4 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -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;