From ed91f20cd31c5f784c393a120de8ed1b00ced562 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 19 Feb 2017 23:11:26 +0200 Subject: [PATCH] [General] Print action used for ID_CONTAINER when receiving one --- apps/openmw-mp/Networking.cpp | 3 +++ apps/openmw/mwmp/Networking.cpp | 1 + 2 files changed, 4 insertions(+) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 21fab4769..74ad23478 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -189,6 +189,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) }); myPacket->Send(player, true); //send to other clients + Script::Call(player->getId()); } else @@ -599,6 +600,8 @@ void Networking::processWorldPacket(RakNet::Packet *packet) myPacket->Read(baseEvent); + LOG_APPEND(Log::LOG_WARN, "- action: %i", baseEvent->action); + // Until we have a timestamp-based system, send packets pertaining to more // than one container (i.e. replies to server requests for container contents) // only to players who have the container's cell loaded diff --git a/apps/openmw/mwmp/Networking.cpp b/apps/openmw/mwmp/Networking.cpp index b592f9fc3..9fdeb8565 100644 --- a/apps/openmw/mwmp/Networking.cpp +++ b/apps/openmw/mwmp/Networking.cpp @@ -747,6 +747,7 @@ void Networking::processWorldPacket(RakNet::Packet *packet) if (!ptrCellStore) return; LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Received ID_CONTAINER"); + LOG_APPEND(Log::LOG_WARN, "- action: %i", event->action); // If we've received a request for information, comply with it if (event->action == mwmp::BaseEvent::REQUEST)