diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-18 01:36:51 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-18 01:36:51 +0200 |
commit | 7014979bffdc08187c8b91c8aefcb0a862a85187 (patch) | |
tree | fd22d73a2485bda09caac3d948f752bca7e380c3 /source/Root.cpp | |
parent | Bugfix Update [SEE DESC} (diff) | |
parent | Fixed LuaWindow destructor causing a crash. (diff) | |
download | cuberite-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.cpp | 12 |
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) |