mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 18:09:50 +00:00
Add debug about current server crash
This commit is contained in:
parent
b2688777c1
commit
24bfe40bf7
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue