diff --git a/include/game/game_handler.hpp b/include/game/game_handler.hpp index 2869d9c5..127a168a 100644 --- a/include/game/game_handler.hpp +++ b/include/game/game_handler.hpp @@ -1443,8 +1443,6 @@ private: // Quest log std::vector questLog_; std::unordered_set pendingQuestQueryIds_; - int questQueryTracePacketsLeft_ = 0; - uint32_t questQueryTraceQuestId_ = 0; // Quest giver status per NPC std::unordered_map npcQuestStatus_; diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index e35d66bd..a0c2d2df 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -933,24 +933,6 @@ void GameHandler::handlePacket(network::Packet& packet) { // Translate wire opcode to logical opcode via expansion table auto logicalOp = opcodeTable_.fromWire(opcode); - if (questQueryTracePacketsLeft_ > 0) { - int logicalId = logicalOp ? static_cast(*logicalOp) : -1; - size_t limit = std::min(24, packet.getSize()); - std::string hex; - const auto& raw = packet.getData(); - for (size_t i = 0; i < limit && i < raw.size(); ++i) { - char buf[4]; - snprintf(buf, sizeof(buf), "%02x ", raw[i]); - hex += buf; - } - LOG_INFO("QTRACE RX: wire=0x", std::hex, opcode, std::dec, - " logical=", logicalId, - " size=", packet.getSize(), - " qid=", questQueryTraceQuestId_, - " head=[", hex, "]"); - --questQueryTracePacketsLeft_; - } - if (!logicalOp) { static std::unordered_set loggedUnknownWireOpcodes; if (loggedUnknownWireOpcodes.insert(opcode).second) { @@ -1963,8 +1945,6 @@ void GameHandler::handlePacket(network::Packet& packet) { } uint32_t questId = packet.readUInt32(); - LOG_INFO("Quest query RX: wire=0x", std::hex, opcode, std::dec, - " questId=", questId, " payloadSize=", packet.getSize()); packet.readUInt32(); // questMethod const bool isClassicLayout = packetParsers_ && packetParsers_->questLogStride() == 3; @@ -8698,11 +8678,6 @@ bool GameHandler::requestQuestQuery(uint32_t questId, bool force) { network::Packet pkt(wireOpcode(Opcode::CMSG_QUEST_QUERY)); pkt.writeUInt32(questId); - questQueryTraceQuestId_ = questId; - questQueryTracePacketsLeft_ = 60; - LOG_INFO("Quest query TX: questId=", questId, " wireOpcode=0x", - std::hex, wireOpcode(Opcode::CMSG_QUEST_QUERY), std::dec, - " force=", force ? 1 : 0); socket->send(pkt); pendingQuestQueryIds_.insert(questId); return true;