forked from teamnwah/openmw-tes3coop
[General] Add TRACE log messages in player processors
This commit is contained in:
parent
606ddff813
commit
64b57983f0
2 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,8 @@ bool PlayerProcessor::Process(RakNet::Packet &packet) noexcept
|
|||
PlayerPacket *myPacket = Networking::get().getPlayerPacketController()->GetPacket(packet.data[0]);
|
||||
myPacket->setPlayer(player.get());
|
||||
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_TRACE, "Processing %s from %s", processor.second->strPacketID.c_str(), player->npc.mName.c_str());
|
||||
|
||||
if (!processor.second->avoidReading)
|
||||
myPacket->Read();
|
||||
|
||||
|
|
|
@ -37,6 +37,9 @@ bool PlayerProcessor::Process(RakNet::Packet &packet)
|
|||
else
|
||||
player = Main::get().getLocalPlayer();
|
||||
|
||||
if (player != 0)
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_TRACE, "Processing %s about %s", processor.second->strPacketID.c_str(), player->npc.mName.c_str());
|
||||
|
||||
if (!request && !processor.second->avoidReading && player != 0)
|
||||
{
|
||||
myPacket->setPlayer(player);
|
||||
|
|
Loading…
Reference in a new issue