Changeset 10916 for code/branches/cpp11_v2/src/modules/overlays/stats
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/overlays/stats/Scoreboard.cc
r10821 r10916 60 60 SUPER(Scoreboard, changedVisibility); 61 61 62 for ( auto & elem: this->lines_)63 elem->changedVisibility();62 for (CreateLines* line : this->lines_) 63 line->changedVisibility(); 64 64 } 65 65 … … 94 94 95 95 unsigned int index = 0; 96 for (const auto & elem: playerList)96 for (const auto& mapEntry : playerList) 97 97 { 98 this->lines_[index]->setPlayerName(multi_cast<std::string>( elem.first->getName()));99 this->lines_[index]->setScore(multi_cast<std::string>( elem.second.frags_));100 this->lines_[index]->setDeaths(multi_cast<std::string>( elem.second.killed_));98 this->lines_[index]->setPlayerName(multi_cast<std::string>(mapEntry.first->getName())); 99 this->lines_[index]->setScore(multi_cast<std::string>(mapEntry.second.frags_)); 100 this->lines_[index]->setDeaths(multi_cast<std::string>(mapEntry.second.killed_)); 101 101 index++; 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.