summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-12 17:29:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-12 17:29:22 +0300
commit707a1570df9146c42411afb6dd7b2e9bc11b0251 (patch)
tree590ecfdf2cde1908c2264ab5370a0495b7aa83b7 /src/being/localplayer.cpp
parent81f319af0c6321474282de8928378366bbb6e44d (diff)
downloadplus-707a1570df9146c42411afb6dd7b2e9bc11b0251.tar.gz
plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.tar.bz2
plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.tar.xz
plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.zip
Move being flags into separate file.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 283024243..800cd10a8 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -342,15 +342,15 @@ void LocalPlayer::slowLogic()
if (serverVersion < 4 && mEnableAdvert && !mBlockAdvert
&& mAdvertTime < cur_time)
{
- uint8_t smile = FLAG_SPECIAL;
+ uint8_t smile = BeingFlag::SPECIAL;
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
- smile |= FLAG_SHOP;
+ smile |= BeingFlag::SHOP;
if (mAwayMode || mPseudoAwayMode)
- smile |= FLAG_AWAY;
+ smile |= BeingFlag::AWAY;
if (mInactive)
- smile |= FLAG_INACTIVE;
+ smile |= BeingFlag::INACTIVE;
if (emote(smile))
mAdvertTime = time + 60;
@@ -3782,13 +3782,13 @@ void LocalPlayer::updateStatus() const
{
uint8_t status = 0;
if (mTradebot && shopWindow && !shopWindow->isShopEmpty())
- status |= FLAG_SHOP;
+ status |= BeingFlag::SHOP;
if (mAwayMode || mPseudoAwayMode)
- status |= FLAG_AWAY;
+ status |= BeingFlag::AWAY;
if (mInactive)
- status |= FLAG_INACTIVE;
+ status |= BeingFlag::INACTIVE;
Net::getPlayerHandler()->updateStatus(status);
}