diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-12 17:29:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-12 17:29:22 +0300 |
commit | 707a1570df9146c42411afb6dd7b2e9bc11b0251 (patch) | |
tree | 590ecfdf2cde1908c2264ab5370a0495b7aa83b7 /src/gui | |
parent | 81f319af0c6321474282de8928378366bbb6e44d (diff) | |
download | plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.tar.gz plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.tar.bz2 plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.tar.xz plus-707a1570df9146c42411afb6dd7b2e9bc11b0251.zip |
Move being flags into separate file.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/whoisonline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp index c417e6b37..38ddcf806 100644 --- a/src/gui/windows/whoisonline.cpp +++ b/src/gui/windows/whoisonline.cpp @@ -818,7 +818,7 @@ void OnlinePlayer::setText(std::string color) } } - if ((mStatus != 255 && mStatus & Being::FLAG_GM) || mIsGM) + if ((mStatus != 255 && mStatus & BeingFlag::GM) || mIsGM) mText.append("(GM) "); if (mLevel > 0) @@ -831,20 +831,20 @@ void OnlinePlayer::setText(std::string color) if (mStatus > 0 && mStatus != 255) { - if (mStatus & Being::FLAG_SHOP) + if (mStatus & BeingFlag::SHOP) mText.append("$"); - if (mStatus & Being::FLAG_AWAY) + if (mStatus & BeingFlag::AWAY) { // TRANSLATORS: this away status writed in player nick mText.append(_("A")); } - if (mStatus & Being::FLAG_INACTIVE) + if (mStatus & BeingFlag::INACTIVE) { // TRANSLATORS: this inactive status writed in player nick mText.append(_("I")); } - if (mStatus & Being::FLAG_GM && color == "0") + if (mStatus & BeingFlag::GM && color == "0") color = "2"; } else if (mIsGM && color == "0") |