From 24bfe40bf73c0efc51e43beb729eef9b455cc8c3 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 24 Oct 2016 21:17:53 +0300 Subject: [PATCH] Add debug about current server crash --- apps/openmw-mp/Networking.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 9d9be874b..09c013e99 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -515,8 +515,12 @@ void Networking::NewPlayer(RakNet::RakNetGUID guid) playerController->GetPacket(ID_GAME_CELL)->RequestData(guid); playerController->GetPacket(ID_GAME_EQUIPMENT)->RequestData(guid); + LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Sending info about other players to %lu", + guid.g); + for (TPlayers::iterator pl = players->begin(); pl != players->end(); pl++) //sending other players to new player { + // If we are iterating over the new player, don't send the packets below if (pl->first == guid) continue; playerController->GetPacket(ID_GAME_BASE_INFO)->Send(pl->second, guid); @@ -528,6 +532,8 @@ void Networking::NewPlayer(RakNet::RakNetGUID guid) playerController->GetPacket(ID_GAME_EQUIPMENT)->Send(pl->second, guid); } + LOG_APPEND(Log::LOG_WARN, "%s", "- Done"); + }