| 2486 | |
| 2487 | |
| 2488 | void cWorld::SendPlayerList(cPlayer * a_DestPlayer) |
| 2489 | { |
| 2490 | // Sends the playerlist to a_DestPlayer |
| 2491 | cCSLock Lock(m_CSPlayers); |
| 2492 | for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) |
| 2493 | { |
| 2494 | cClientHandle * ch = (*itr)->GetClientHandle(); |
| 2495 | if ((ch != NULL) && !ch->IsDestroyed()) |
| 2496 | { |
| 2497 | a_DestPlayer->GetClientHandle()->SendPlayerListItem(*(*itr), true); |
| 2498 | } |
| 2499 | } |
| 2500 | } |
| 2501 | |
| 2502 | |
| 2503 |
no test coverage detected