11-03-2011, 10:56 AM 
		
	
	
		I think having a way to broadcast to either world or server is a good idea.
I think keeping this here and adding one for per world broadcasting is a good idea
	
	
	
	
Code:
// 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 /* = 0 */ )
{
    for( ClientList::iterator itr = m_pState->Clients.begin(); itr != m_pState->Clients.end(); ++itr)
    {
        if( *itr == a_Exclude || !(*itr)->IsLoggedIn() ) continue;
        (*itr)->Send( a_Packet );
    }
}I think keeping this here and adding one for per world broadcasting is a good idea

 

 
