From 4502951aed77f18175adb601f0e094fd921c360d Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 28 Jan 2012 17:34:39 +0100 Subject: Moved mTrading into the TradeHandler Really only the trade handler is concerned about whether the player is currently in a trade or not. Reviewed-by: Erik Schilling --- src/playerinfo.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/playerinfo.cpp') diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp index 0a581db3..692090af 100644 --- a/src/playerinfo.cpp +++ b/src/playerinfo.cpp @@ -46,7 +46,6 @@ static bool mNPCCount = 0; static bool mNPCPostCount = 0; static BuySellState mBuySellState = BUYSELL_NONE; -static bool mTrading = false; static std::map mSpecials; static char mSpecialRechargeUpdateNeeded = 0; @@ -281,24 +280,6 @@ void setBuySellState(BuySellState buySellState) } } -bool isTrading() -{ - return mTrading; -} - -void setTrading(bool trading) -{ - bool notify = mTrading != trading; - mTrading = trading; - - if (notify) - { - Event event(Event::Trading); - event.setBool("trading", trading); - event.trigger(Event::StatusChannel); - } -} - // --- Specials --------------------------------------------------------------- void setSpecialStatus(int id, int current, int max, int recharge) -- cgit v1.2.3-70-g09d2