diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-02 18:14:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-02 18:14:03 +0300 |
commit | 5c80bbfd023a1a3ab390ea46ccb763309ad5ab27 (patch) | |
tree | bfabc7e2242b72910e2379299cf646f5ef9c0865 /src/net/eathena/questrecv.cpp | |
parent | cd9eb5baf58e38af1393e77b81f9b37fc4246056 (diff) | |
download | manaplus-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.cpp | 9 |
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) |