From e54b8369a982585445c84c8590bdb1c16701763f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Feb 2015 15:07:22 +0300 Subject: Not allow moving while vending shop enabled. --- src/net/eathena/vendinghandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net') 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 -- cgit v1.2.3-70-g09d2