summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-01-23 03:36:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-01-23 03:36:05 +0300
commit0d1ecc47f4b30d40474ac9402180f1a690a8eee2 (patch)
tree6bc559796188593d72a6e5a994d84d33b77ddba3 /src
parent3aa3c4e56a3f7ec31ac1bf27599fcbead9a482e8 (diff)
downloadmv-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.tar.gz
mv-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.tar.bz2
mv-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.tar.xz
mv-0d1ecc47f4b30d40474ac9402180f1a690a8eee2.zip
Fix erase action to guild members or other players with some kind of colored nicks
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp6
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
{