summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-03-04 22:03:14 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-03-04 23:10:24 +0100
commitb60e6d82d6e843f9e65c81555ec281d237c3ce41 (patch)
tree9f358ae0e37badc5289c7ab3518fed2fd56f6d68 /src/being.cpp
parenteefe244e276634d59d5e6b89217f5747bb2afd97 (diff)
downloadmana-b60e6d82d6e843f9e65c81555ec281d237c3ce41.tar.gz
mana-b60e6d82d6e843f9e65c81555ec281d237c3ce41.tar.bz2
mana-b60e6d82d6e843f9e65c81555ec281d237c3ce41.tar.xz
mana-b60e6d82d6e843f9e65c81555ec281d237c3ce41.zip
Show gender near player names.
Configuring in Setup / Players / Show gender. Reviewed-by: Jared Adams <jaxad0127@gmail.com> Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
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 d78f38ab..54aa5e8a 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1032,7 +1032,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))
{