diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-23 03:36:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-23 03:36:05 +0300 |
commit | 0d1ecc47f4b30d40474ac9402180f1a690a8eee2 (patch) | |
tree | 6bc559796188593d72a6e5a994d84d33b77ddba3 | |
parent | 3aa3c4e56a3f7ec31ac1bf27599fcbead9a482e8 (diff) | |
download | plus-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.tar.gz plus-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.tar.bz2 plus-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.tar.xz plus-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.zip |
Fix erase action to guild members or other players with some kind of colored nicks
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 633be5d53..edc177f17 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1734,7 +1734,10 @@ void Being::updateColors() { mTextColor = &Theme::getThemeColor(Theme::PLAYER); - mErased = false; + if (player_relations.getRelation(mName) != PlayerRelation::ERASED) + mErased = false; + else + mErased = true; if (mIsGM) { @@ -1776,7 +1779,6 @@ void Being::updateColors() PlayerRelation::ERASED) { mNameColor = &userPalette->getColor(UserPalette::ERASED); - mErased = true; } else { |