From 09ebcebf32be3842d6158c3145492fbf2959440e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Jun 2011 03:03:12 +0300 Subject: Add setup option for finding bad chars in nicks. Highlight bad nicks on map with secure font. --- src/being.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 27b4721b4..e38e60026 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -208,6 +208,7 @@ Being::Being(int id, Type type, Uint16 subtype, Map *map): mHP(0), mMaxHP(0), mDistance(0), mIsReachable(REACH_UNKNOWN), + mGoodStatus(-1), mErased(false), mEnemy(false), mIp(""), @@ -1489,6 +1490,10 @@ void Being::showName() { font = boldFont; } + else if (getType() == PLAYER && !player_relations.isGoodName(this) && gui) + { + font = gui->getSecureFont(); + } mDispName = new FlashText(mDisplayName, getPixelX(), getPixelY(), gcn::Graphics::CENTER, mNameColor, font); -- cgit v1.2.3-60-g2f50