summaryrefslogtreecommitdiff
path: root/src/net/eathena/searchstorehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 23:44:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 23:44:47 +0300
commit0dbd25bacb312932e343f154001531b6be84a6ac (patch)
treef9698b2eb827fdca9f8bbdc990cf45dbecf961e6 /src/net/eathena/searchstorehandler.cpp
parentf6f6683177abd0f786b34d3d2bd689d615c899e0 (diff)
downloadmv-0dbd25bacb312932e343f154001531b6be84a6ac.tar.gz
mv-0dbd25bacb312932e343f154001531b6be84a6ac.tar.bz2
mv-0dbd25bacb312932e343f154001531b6be84a6ac.tar.xz
mv-0dbd25bacb312932e343f154001531b6be84a6ac.zip
Fix version for packet CMSG_SEARCHSTORE_CLOSE.
Diffstat (limited to 'src/net/eathena/searchstorehandler.cpp')
-rw-r--r--src/net/eathena/searchstorehandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp
index 93e199286..513e9010e 100644
--- a/src/net/eathena/searchstorehandler.cpp
+++ b/src/net/eathena/searchstorehandler.cpp
@@ -26,6 +26,7 @@
#include "debug.h"
extern Net::SearchStoreHandler *searchStoreHandler;
+extern int packetVersion;
namespace EAthena
{
@@ -40,6 +41,9 @@ void SearchStoreHandler::search(const StoreSearchTypeT type,
const int maxPrice,
const int itemId) const
{
+ if (packetVersion < 20100601)
+ return;
+
createOutPacket(CMSG_SEARCHSTORE_SEARCH);
outMsg.writeInt16(23, "len");
outMsg.writeInt8(CAST_U8(type), "search type");
@@ -52,11 +56,15 @@ void SearchStoreHandler::search(const StoreSearchTypeT type,
void SearchStoreHandler::nextPage() const
{
+ if (packetVersion < 20100608)
+ return;
createOutPacket(CMSG_SEARCHSTORE_NEXT_PAGE);
}
void SearchStoreHandler::close() const
{
+ if (packetVersion < 20100608)
+ return;
createOutPacket(CMSG_SEARCHSTORE_CLOSE);
}
@@ -64,6 +72,8 @@ void SearchStoreHandler::select(const int accountId,
const int storeId,
const int itemId) const
{
+ if (packetVersion < 20100608)
+ return;
createOutPacket(CMSG_SEARCHSTORE_CLICK);
outMsg.writeInt32(accountId, "account id");
outMsg.writeInt32(storeId, "store id");