diff options
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; + } +} |