| 2057 | |
| 2058 | |
| 2059 | void cWorld::BroadcastDisplayObjective(const AString & a_Objective, cScoreboard::eDisplaySlot a_Display) |
| 2060 | { |
| 2061 | cCSLock Lock(m_CSPlayers); |
| 2062 | for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) |
| 2063 | { |
| 2064 | cClientHandle * ch = (*itr)->GetClientHandle(); |
| 2065 | if ((ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed()) |
| 2066 | { |
| 2067 | continue; |
| 2068 | } |
| 2069 | ch->SendDisplayObjective(a_Objective, a_Display); |
| 2070 | } |
| 2071 | } |
| 2072 | |
| 2073 | |
| 2074 |
no test coverage detected