summaryrefslogtreecommitdiff
path: root/src
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
parent04c28ce7873d5a4d67793157e250097cb65b0bc8 (diff)
downloadplus-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.gz
plus-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.bz2
plus-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.xz
plus-b2683954e4574905ce3cc0cbf9afeeee35549009.zip
Add packet fields comments in questhandler.
Diffstat (limited to 'src')
-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)