diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-27 19:31:16 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-27 19:31:16 +0200 |
commit | 66f4c9e0c08762fb4668792999c6200e9fd78c89 (patch) | |
tree | af89423afb69f78251a16eb041e88cca9ebef478 /source/cServer.cpp | |
parent | git-svn-id: http://mc-server.googlecode.com/svn/trunk@795 0a769ca7-a7f5-676a-18bf-c427514a06d6 (diff) | |
download | cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.tar cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.tar.gz cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.tar.bz2 cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.tar.lz cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.tar.xz cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.tar.zst cuberite-66f4c9e0c08762fb4668792999c6200e9fd78c89.zip |
Diffstat (limited to 'source/cServer.cpp')
-rw-r--r-- | source/cServer.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/cServer.cpp b/source/cServer.cpp index 162512f24..330a69873 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -283,24 +283,6 @@ cServer::~cServer() -// TODO - Need to modify this or something, so it broadcasts to all worlds? And move this to cWorld? -void cServer::Broadcast(const cPacket & a_Packet, cClientHandle * a_Exclude) -{ - cCSLock Lock(m_CSClients); - for (ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr) - { - if ((*itr == a_Exclude) || !(*itr)->IsLoggedIn()) - { - continue; - } - (*itr)->Send(a_Packet); - } -} - - - - - void cServer::BroadcastChat(const AString & a_Message, const cClientHandle * a_Exclude) { cCSLock Lock(m_CSClients); |