| 2039 | |
| 2040 | |
| 2041 | void cWorld::BroadcastScoreUpdate(const AString & a_Objective, const AString & a_Player, cObjective::Score a_Score, Byte a_Mode) |
| 2042 | { |
| 2043 | cCSLock Lock(m_CSPlayers); |
| 2044 | for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) |
| 2045 | { |
| 2046 | cClientHandle * ch = (*itr)->GetClientHandle(); |
| 2047 | if ((ch == NULL) || !ch->IsLoggedIn() || ch->IsDestroyed()) |
| 2048 | { |
| 2049 | continue; |
| 2050 | } |
| 2051 | ch->SendScoreUpdate(a_Objective, a_Player, a_Score, a_Mode); |
| 2052 | } |
| 2053 | } |
| 2054 | |
| 2055 | |
| 2056 |
no test coverage detected