| 2156 | |
| 2157 | |
| 2158 | void cWorld::BroadcastWeather(eWeather a_Weather, const cClientHandle * a_Exclude) |
| 2159 | { |
| 2160 | cCSLock Lock(m_CSPlayers); |
| 2161 | for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) |
| 2162 | { |
| 2163 | cClientHandle * ch = (*itr)->GetClientHandle(); |
| 2164 | if ((ch == a_Exclude) || (ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed()) |
| 2165 | { |
| 2166 | continue; |
| 2167 | } |
| 2168 | ch->SendWeather(a_Weather); |
| 2169 | } |
| 2170 | } |
| 2171 | |
| 2172 | |
| 2173 |
nothing calls this directly
no test coverage detected