summaryrefslogtreecommitdiffstats
path: root/source/Root.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-18 01:36:51 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-08-18 01:36:51 +0200
commit7014979bffdc08187c8b91c8aefcb0a862a85187 (patch)
treefd22d73a2485bda09caac3d948f752bca7e380c3 /source/Root.cpp
parentBugfix Update [SEE DESC} (diff)
parentFixed LuaWindow destructor causing a crash. (diff)
downloadcuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.tar
cuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.tar.gz
cuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.tar.bz2
cuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.tar.lz
cuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.tar.xz
cuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.tar.zst
cuberite-7014979bffdc08187c8b91c8aefcb0a862a85187.zip
Diffstat (limited to 'source/Root.cpp')
-rw-r--r--source/Root.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/Root.cpp b/source/Root.cpp
index 07de0775c..d07cc1ee7 100644
--- a/source/Root.cpp
+++ b/source/Root.cpp
@@ -478,6 +478,18 @@ void cRoot::SaveAllChunks(void)
+void cRoot::BroadcastChat(const AString & a_Message)
+{
+ for (WorldMap::iterator itr = m_WorldsByName.begin(), end = m_WorldsByName.end(); itr != end; ++itr)
+ {
+ itr->second->BroadcastChat(a_Message);
+ } // for itr - m_WorldsByName[]
+}
+
+
+
+
+
bool cRoot::ForEachPlayer(cPlayerListCallback & a_Callback)
{
for (WorldMap::iterator itr = m_WorldsByName.begin(), itr2 = itr; itr != m_WorldsByName.end(); itr = itr2)