From c7f54151ba693e7f57378b77cc567d5aa26cf4cf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Feb 2015 23:28:02 +0300 Subject: Enable publish button in personal buy shop only if it allowed by server. --- src/net/eathena/buyingstorehandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 649b2b39e..8781a13ee 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -25,6 +25,8 @@ #include "being/being.h" +#include "listeners/buyingstoreslotslistener.h" + #include "net/ea/eaprotocol.h" #include "net/eathena/messageout.h" @@ -111,8 +113,7 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg) void BuyingStoreHandler::processBuyingStoreOpen(Net::MessageIn &msg) { - // +++ need create store dialog - msg.readUInt8("slots"); + BuyingStoreSlotsListener::distributeEvent(msg.readUInt8("slots")); } void BuyingStoreHandler::processBuyingStoreCreateFailed(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50