From b2683954e4574905ce3cc0cbf9afeeee35549009 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Oct 2014 18:34:48 +0300 Subject: Add packet fields comments in questhandler. --- src/net/tmwa/questhandler.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp index 995792da0..80044396b 100644 --- a/src/net/tmwa/questhandler.cpp +++ b/src/net/tmwa/questhandler.cpp @@ -67,8 +67,8 @@ void QuestHandler::handleMessage(Net::MessageIn &msg) void QuestHandler::processSetQuestVar(Net::MessageIn &msg) { - const int var = msg.readInt16(); // variable - const int val = msg.readInt32(); // value + const int var = msg.readInt16("variable"); + const int val = msg.readInt32("value"); if (questsWindow) { questsWindow->updateQuest(var, val); @@ -83,11 +83,11 @@ void QuestHandler::processSetQuestVar(Net::MessageIn &msg) void QuestHandler::processPlayerQuests(Net::MessageIn &msg) { - const int count = (msg.readInt16() - 4) / 6; + const int count = (msg.readInt16("len") - 4) / 6; for (int f = 0; f < count; f ++) { - const int var = msg.readInt16(); // variable - const int val = msg.readInt32(); // value + const int var = msg.readInt16("variable"); + const int val = msg.readInt32("value"); if (questsWindow) questsWindow->updateQuest(var, val); if (skillDialog) -- cgit v1.2.3-60-g2f50