summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp5
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);