summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index afa0cd0e..64fe635e 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1051,7 +1051,21 @@ void Being::showName()
mDispName = 0;
std::string mDisplayName(mName);
- if (getType() == MONSTER)
+ if (getType() == PLAYER)
+ {
+ if (config.getValue("showgender", false))
+ {
+ Player* player = static_cast<Player*>(this);
+ if (player)
+ {
+ if (player->getGender() == GENDER_FEMALE)
+ mDisplayName += " \u2640";
+ else
+ mDisplayName += " \u2642";
+ }
+ }
+ }
+ else if (getType() == MONSTER)
{
if (config.getValue("showMonstersTakedDamage", false))
{