diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-01 03:03:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-01 03:07:13 +0300 |
commit | 09ebcebf32be3842d6158c3145492fbf2959440e (patch) | |
tree | 44970b335330ca56ab38d06f083fa005f1c53ca5 /src/being.cpp | |
parent | fdb8081a82ec85c9ff23a89a82f81240d8bcaec9 (diff) | |
download | mv-09ebcebf32be3842d6158c3145492fbf2959440e.tar.gz mv-09ebcebf32be3842d6158c3145492fbf2959440e.tar.bz2 mv-09ebcebf32be3842d6158c3145492fbf2959440e.tar.xz mv-09ebcebf32be3842d6158c3145492fbf2959440e.zip |
Add setup option for finding bad chars in nicks.
Highlight bad nicks on map with secure font.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |