Core/PacketIO: Implemented CMSG_BUSY_TRADE and CMSG_IGNORE_TRADE
This commit is contained in:
1 parent
1c38edaae4
commit
a145c21495
4 files changed
+9
-14
No files matched your search
@@ -12305,7 +12305,7 @@ bool Player::IsUsingTwoHandedWeaponInOneHand() const
|
||||
return true;
|
||||
}
|
||||
|
||||
void Player::TradeCancel(bool sendback)
|
||||
void Player::TradeCancel(bool sendback, TradeStatus status /*= TRADE_STATUS_TRADE_CANCELED*/)
|
||||
{
|
||||
if (m_trade)
|
||||
{
|
||||
@@ -12313,9 +12313,9 @@ void Player::TradeCancel(bool sendback)
|
||||
|
||||
// send yellow "Trade canceled" message to both traders
|
||||
if (sendback)
|
||||
GetSession()->SendCancelTrade();
|
||||
GetSession()->SendCancelTrade(status);
|
||||
|
||||
trader->GetSession()->SendCancelTrade();
|
||||
trader->GetSession()->SendCancelTrade(status);
|
||||
|
||||
// cleanup
|
||||
delete m_trade;
|
||||
|
||||
Reference in new issue
Block a user