summaryrefslogtreecommitdiff
path: root/src/net/tmwa/questhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 18:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 19:46:37 +0300
commitb2683954e4574905ce3cc0cbf9afeeee35549009 (patch)
tree82a4abc81d9ad2105b1299c2861c753d415dcce3 /src/net/tmwa/questhandler.cpp
parent04c28ce7873d5a4d67793157e250097cb65b0bc8 (diff)
downloadmanaplus-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.gz
manaplus-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.bz2
manaplus-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.xz
manaplus-b2683954e4574905ce3cc0cbf9afeeee35549009.zip
Add packet fields comments in questhandler.
Diffstat (limited to 'src/net/tmwa/questhandler.cpp')
-rw-r--r--src/net/tmwa/questhandler.cpp10
1 files 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)