From 0d1ecc47f4b30d40474ac9402180f1a690a8eee2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Jan 2013 03:36:05 +0300 Subject: Fix erase action to guild members or other players with some kind of colored nicks --- src/being.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') 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 { -- cgit v1.2.3-60-g2f50