summaryrefslogtreecommitdiff
path: root/src/net/eathena/questrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-02 18:14:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-02 18:14:03 +0300
commit5c80bbfd023a1a3ab390ea46ccb763309ad5ab27 (patch)
treebfabc7e2242b72910e2379299cf646f5ef9c0865 /src/net/eathena/questrecv.cpp
parentcd9eb5baf58e38af1393e77b81f9b37fc4246056 (diff)
downloadmanaplus-5c80bbfd023a1a3ab390ea46ccb763309ad5ab27.tar.gz
manaplus-5c80bbfd023a1a3ab390ea46ccb763309ad5ab27.tar.bz2
manaplus-5c80bbfd023a1a3ab390ea46ccb763309ad5ab27.tar.xz
manaplus-5c80bbfd023a1a3ab390ea46ccb763309ad5ab27.zip
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src/net/eathena/questrecv.cpp')
-rw-r--r--src/net/eathena/questrecv.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp
index b28f6c21a..206ed7798 100644
--- a/src/net/eathena/questrecv.cpp
+++ b/src/net/eathena/questrecv.cpp
@@ -69,9 +69,12 @@ void QuestRecv::processAddQuests(Net::MessageIn &msg)
{
const int var = msg.readInt32("quest id");
const int val = msg.readUInt8("state");
- msg.readInt32("time diff");
- msg.readInt32("time");
- msg.readInt16("objectives count");
+ if (msg.getVersion() >= 20141022)
+ {
+ msg.readInt32("time diff");
+ msg.readInt32("time");
+ msg.readInt16("objectives count");
+ }
if (questsWindow)
questsWindow->updateQuest(var, val);
if (skillDialog)