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"); + }