| 528 | |
| 529 | |
| 530 | void cScoreboard::AddPlayerScore(const AString & a_Name, cObjective::eType a_Type, cObjective::Score a_Value) |
| 531 | { |
| 532 | cCSLock Lock(m_CSObjectives); |
| 533 | |
| 534 | for (cObjectiveMap::iterator it = m_Objectives.begin(); it != m_Objectives.end(); ++it) |
| 535 | { |
| 536 | if (it->second.GetType() == a_Type) |
| 537 | { |
| 538 | it->second.AddScore(a_Name, a_Value); |
| 539 | } |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | |
| 544 |