diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-28 17:34:39 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-28 19:02:27 +0100 |
commit | 4502951aed77f18175adb601f0e094fd921c360d (patch) | |
tree | 111f0efad74dad24932f5685f572e4c4031d7a49 /src/playerinfo.cpp | |
parent | afdb517a87836995de7a94921cb2bfb2f9a2d56a (diff) | |
download | mana-4502951aed77f18175adb601f0e094fd921c360d.tar.gz mana-4502951aed77f18175adb601f0e094fd921c360d.tar.bz2 mana-4502951aed77f18175adb601f0e094fd921c360d.tar.xz mana-4502951aed77f18175adb601f0e094fd921c360d.zip |
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
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r-- | src/playerinfo.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
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<int, Special> 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) |