diff options
author | Bertram <bertram@cegetel.net> | 2010-03-04 23:17:18 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-03-04 23:17:18 +0100 |
commit | f0bf3996fbc2f9dc3edc55b45e4fa3a3a6275db4 (patch) | |
tree | 41bd1aa44ad3ce2ba224676fccfbc45d32c79904 /src/being.cpp | |
parent | 500920393cd4a579c4d103b1fa8f4a3968d45a75 (diff) | |
parent | b60e6d82d6e843f9e65c81555ec281d237c3ce41 (diff) | |
download | mana-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.cpp | 16 |
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)) { |