diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-23 18:34:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-23 19:46:37 +0300 |
commit | b2683954e4574905ce3cc0cbf9afeeee35549009 (patch) | |
tree | 82a4abc81d9ad2105b1299c2861c753d415dcce3 /src/net | |
parent | 04c28ce7873d5a4d67793157e250097cb65b0bc8 (diff) | |
download | mv-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.gz mv-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.bz2 mv-b2683954e4574905ce3cc0cbf9afeeee35549009.tar.xz mv-b2683954e4574905ce3cc0cbf9afeeee35549009.zip |
Add packet fields comments in questhandler.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/questhandler.cpp | 10 |
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) |