diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-23 17:39:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-23 19:46:20 +0300 |
commit | 80542aec861dd9ea5a7902d1f5c227fa7801bd14 (patch) | |
tree | 43e78f22e07d17608c11a59bb9b09199d5f31c1e /src/net/ea | |
parent | c47fd48bc3deefb774b0c809967f26632dce6a3a (diff) | |
download | manaplus-80542aec861dd9ea5a7902d1f5c227fa7801bd14.tar.gz manaplus-80542aec861dd9ea5a7902d1f5c227fa7801bd14.tar.bz2 manaplus-80542aec861dd9ea5a7902d1f5c227fa7801bd14.tar.xz manaplus-80542aec861dd9ea5a7902d1f5c227fa7801bd14.zip |
Add packet fields comments in npchandler.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/npchandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp index 9a1592576..66ad24b43 100644 --- a/src/net/ea/npchandler.cpp +++ b/src/net/ea/npchandler.cpp @@ -64,11 +64,12 @@ void NpcHandler::processNpcChoice(Net::MessageIn &msg) if (mDialog) { mDialog->choiceRequest(); - mDialog->parseListItems(msg.readString(msg.getLength() - 8)); + mDialog->parseListItems(msg.readString(msg.getLength() - 8, + "select items")); } else { - msg.readString(msg.getLength() - 8); + msg.readString(msg.getLength() - 8, "select items"); } } @@ -77,7 +78,7 @@ void NpcHandler::processNpcMessage(Net::MessageIn &msg) npcHandler->getNpc(msg); mRequestLang = false; - const std::string message = msg.readString(msg.getLength() - 8); + const std::string message = msg.readString(msg.getLength() - 8, "message"); // ignore future legacy npc commands. if (message.size() > 3 && message.substr(0, 3) == "###") return; |