Changeset 161 for trunk/src/configuration.cpp
- Timestamp:
- 09/27/2008 11:55:54 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/configuration.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/configuration.cpp
r160 r161 158 158 void Configuration::saveHighscores(ofstream *file) 159 159 { 160 Highscore List::iterator it;160 HighscoresList::iterator it; 161 161 for (it = m_highscores.begin(); it!=m_highscores.end(); it++) { 162 162 (*file)<<(*it).score<<" "; … … 285 285 } 286 286 287 Highscore List::iterator it= m_highscores.end();287 HighscoresList::iterator it= m_highscores.end(); 288 288 if ((--it)->score<score) { 289 289 return true; … … 306 306 temp_item.name = name; 307 307 308 Highscore List::iterator it = m_highscores.begin();308 HighscoresList::iterator it = m_highscores.begin(); 309 309 while (it!=m_highscores.end()) { 310 310 if (it->score < temp_item.score) { … … 326 326 return place; 327 327 } 328 329 const HighscoresList* Configuration::getHighscores() const 330 { 331 const HighscoresList * ptr = &m_highscores; 332 return ptr; 333 }
Note: See TracChangeset
for help on using the changeset viewer.
