summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp13
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;
+ }
+}