| 259 | |
| 260 | |
| 261 | void cWindow::OpenedByPlayer(cPlayer & a_Player) |
| 262 | { |
| 263 | { |
| 264 | cCSLock Lock(m_CS); |
| 265 | // If player is already in OpenedBy remove player first |
| 266 | m_OpenedBy.remove(&a_Player); |
| 267 | // Then add player |
| 268 | m_OpenedBy.push_back(&a_Player); |
| 269 | |
| 270 | for (cSlotAreas::iterator itr = m_SlotAreas.begin(), end = m_SlotAreas.end(); itr != end; ++itr) |
| 271 | { |
| 272 | (*itr)->OnPlayerAdded(a_Player); |
| 273 | } // for itr - m_SlotAreas[] |
| 274 | } |
| 275 | |
| 276 | a_Player.GetClientHandle()->SendWindowOpen(*this); |
| 277 | } |
| 278 | |
| 279 | |
| 280 |
no test coverage detected