summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-02 15:07:22 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-02 22:48:10 +0300
commite54b8369a982585445c84c8590bdb1c16701763f (patch)
tree77f4ce5c37ad45f3bc3aa42f644b818025f92af2 /src/net/eathena/vendinghandler.cpp
parent610b19c083565f1f6c153fadff80fc0e7475168f (diff)
downloadplus-e54b8369a982585445c84c8590bdb1c16701763f.tar.gz
plus-e54b8369a982585445c84c8590bdb1c16701763f.tar.bz2
plus-e54b8369a982585445c84c8590bdb1c16701763f.tar.xz
plus-e54b8369a982585445c84c8590bdb1c16701763f.zip
Not allow moving while vending shop enabled.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index 823709b6f..9e3e00117 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -124,7 +124,10 @@ void VendingHandler::processHideBoard(Net::MessageIn &msg)
if (dstBeing)
dstBeing->setBoard(std::string());
if (dstBeing == localPlayer)
+ {
+ PlayerInfo::enableVending(false);
VendingModeListener::distributeEvent(false);
+ }
}
void VendingHandler::processItemsList(Net::MessageIn &msg)
@@ -197,6 +200,7 @@ void VendingHandler::processReport(Net::MessageIn &msg)
void VendingHandler::close() const
{
createOutPacket(CMSG_VENDING_CLOSE);
+ PlayerInfo::enableVending(false);
}
void VendingHandler::open(const Being *const being) const