diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-12 20:53:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-12 20:53:54 +0300 |
commit | 8b8efe383c502456a36d0f0faf5a2079b816243d (patch) | |
tree | 6224cd987b9820999c77e1898fea19df913674fc /src/net/eathena/markethandler.cpp | |
parent | 1425c495898e604c83db58f0bc4f53a4ac7c1df0 (diff) | |
download | manaplus-8b8efe383c502456a36d0f0faf5a2079b816243d.tar.gz manaplus-8b8efe383c502456a36d0f0faf5a2079b816243d.tar.bz2 manaplus-8b8efe383c502456a36d0f0faf5a2079b816243d.tar.xz manaplus-8b8efe383c502456a36d0f0faf5a2079b816243d.zip |
Fix version for market and some other packets.
Diffstat (limited to 'src/net/eathena/markethandler.cpp')
-rw-r--r-- | src/net/eathena/markethandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp index 2aeaf6787..b5a31f344 100644 --- a/src/net/eathena/markethandler.cpp +++ b/src/net/eathena/markethandler.cpp @@ -29,6 +29,7 @@ #include "debug.h" extern Net::MarketHandler *marketHandler; +extern int packetVersion; namespace EAthena { @@ -41,6 +42,9 @@ MarketHandler::MarketHandler() void MarketHandler::close() const { + if (packetVersion < 20131218) + return; + createOutPacket(CMSG_NPC_MARKET_CLOSE); } @@ -49,6 +53,8 @@ void MarketHandler::buyItem(const int itemId, const ItemColor color A_UNUSED, const int amount) const { + if (packetVersion < 20131218) + return; const bool nonStack = type == ItemType::Weapon || type == ItemType::Armor || type == ItemType::PetEgg || @@ -69,6 +75,8 @@ void MarketHandler::buyItem(const int itemId, void MarketHandler::buyItems(const std::vector<ShopItem*> &items) const { + if (packetVersion < 20131218) + return; int cnt = 0; const int pairSize = 6; |