summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-03-04 23:17:18 +0100
committerBertram <bertram@cegetel.net>2010-03-04 23:17:18 +0100
commitf0bf3996fbc2f9dc3edc55b45e4fa3a3a6275db4 (patch)
tree41bd1aa44ad3ce2ba224676fccfbc45d32c79904 /src/being.cpp
parent500920393cd4a579c4d103b1fa8f4a3968d45a75 (diff)
parentb60e6d82d6e843f9e65c81555ec281d237c3ce41 (diff)
downloadmana-f0bf3996fbc2f9dc3edc55b45e4fa3a3a6275db4.tar.gz
mana-f0bf3996fbc2f9dc3edc55b45e4fa3a3a6275db4.tar.bz2
mana-f0bf3996fbc2f9dc3edc55b45e4fa3a3a6275db4.tar.xz
mana-f0bf3996fbc2f9dc3edc55b45e4fa3a3a6275db4.zip
Merge branch 'master' of gitorious.org:mana/mana
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))
{