| 2021 | |
| 2022 | |
| 2023 | void cWorld::BroadcastScoreboardObjective(const AString & a_Name, const AString & a_DisplayName, Byte a_Mode) |
| 2024 | { |
| 2025 | cCSLock Lock(m_CSPlayers); |
| 2026 | for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) |
| 2027 | { |
| 2028 | cClientHandle * ch = (*itr)->GetClientHandle(); |
| 2029 | if ((ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed()) |
| 2030 | { |
| 2031 | continue; |
| 2032 | } |
| 2033 | ch->SendScoreboardObjective(a_Name, a_DisplayName, a_Mode); |
| 2034 | } |
| 2035 | } |
| 2036 | |
| 2037 | |
| 2038 |
no test coverage detected