Core/PacketIO: Restored WorldSession::LogUnprocessedTail functionality for packets processed using specialized classes for each opcode

This commit is contained in:
Shauren
2016-10-24 23:06:42 +02:00
parent f2155c9afa
commit 40baf3e94f
3 changed files with 3 additions and 5 deletions

View File

@@ -31,6 +31,7 @@ public:
PacketClass nicePacket(std::move(packet));
nicePacket.Read();
(session->*HandlerFunction)(nicePacket);
session->LogUnprocessedTail(nicePacket.GetRawPacket());
}
};
@@ -43,6 +44,7 @@ public:
void Call(WorldSession* session, WorldPacket& packet) const override
{
(session->*HandlerFunction)(packet);
session->LogUnprocessedTail(&packet);
}
};

View File

@@ -370,7 +370,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
{
sScriptMgr->OnPacketReceive(this, *packet);
opHandle->Call(this, *packet);
LogUnprocessedTail(packet);
}
// lag can cause STATUS_LOGGEDIN opcodes to arrive after the player started a transfer
break;
@@ -383,7 +382,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
// not expected _player or must checked in packet hanlder
sScriptMgr->OnPacketReceive(this, *packet);
opHandle->Call(this, *packet);
LogUnprocessedTail(packet);
}
break;
case STATUS_TRANSFER:
@@ -395,7 +393,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
{
sScriptMgr->OnPacketReceive(this, *packet);
opHandle->Call(this, *packet);
LogUnprocessedTail(packet);
}
break;
case STATUS_AUTHED:
@@ -415,7 +412,6 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
{
sScriptMgr->OnPacketReceive(this, *packet);
opHandle->Call(this, *packet);
LogUnprocessedTail(packet);
}
break;
case STATUS_NEVER:

View File

@@ -1113,6 +1113,7 @@ class TC_GAME_API WorldSession
void Handle_NULL(WorldPackets::Null& null); // not used
void Handle_EarlyProccess(WorldPacket& recvPacket); // just mark packets processed in WorldSocket::OnRead
void LogUnprocessedTail(WorldPacket* packet);
void HandleCharEnum(PreparedQueryResult result);
void HandleCharEnumOpcode(WorldPackets::Character::EnumCharacters& /*enumCharacters*/);
@@ -1807,7 +1808,6 @@ class TC_GAME_API WorldSession
// logging helper
void LogUnexpectedOpcode(WorldPacket* packet, const char* status, const char *reason);
void LogUnprocessedTail(WorldPacket* packet);
// EnumData helpers
bool IsLegitCharacterForAccount(ObjectGuid lowGUID)