diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-03-04 22:03:14 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-04 23:10:24 +0100 |
commit | b60e6d82d6e843f9e65c81555ec281d237c3ce41 (patch) | |
tree | 9f358ae0e37badc5289c7ab3518fed2fd56f6d68 /src/beingmanager.cpp | |
parent | eefe244e276634d59d5e6b89217f5747bb2afd97 (diff) | |
download | mana-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/beingmanager.cpp')
-rw-r--r-- | src/beingmanager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index 4a2f1106..c7ed9d86 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -276,3 +276,16 @@ void BeingManager::getPlayerNames(std::vector<std::string> &names, ++i; } } + +void BeingManager::updatePlayerNames() +{ + Beings::iterator i = mBeings.begin(); + + while (i != mBeings.end()) + { + Being *being = (*i); + if (being->getType() == Being::PLAYER && being->getName() != "") + being->updateName(); + ++i; + } +} |