summaryrefslogtreecommitdiff
path: root/src/gui/beingpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r--src/gui/beingpopup.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp
index 20d2c5c1e..a47e35032 100644
--- a/src/gui/beingpopup.cpp
+++ b/src/gui/beingpopup.cpp
@@ -23,6 +23,7 @@
#include "being.h"
#include "graphics.h"
+#include "playerrelations.h"
#include "units.h"
#include "gui/gui.h"
@@ -81,6 +82,14 @@ void BeingPopup::show(int x, int y, Being *b)
Label *label3 = mBeingRank;
mBeingName->setCaption(b->getName());
+ if (gui)
+ {
+ if (player_relations.isGoodName(b))
+ mBeingName->setFont(boldFont);
+ else
+ mBeingName->setFont(gui->getSecureFont());
+ }
+
mBeingName->adjustSize();
label1->setCaption("");
label2->setCaption("");