Changeset 11726
- Timestamp:
- Feb 11, 2018, 12:33:56 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2D.cc
r11669 r11726 217 217 // It will misteriously crash the game! 218 218 // Instead startMainMenu, this won't crash. 219 if (Highscore::exists()){ 220 int score = this->getPoints(); 221 if(score > Highscore::getInstance().getHighestScoreOfGame("Asteroids2D")) 222 Highscore::getInstance().storeHighscore("Asteroids2D",score); 223 224 } 219 if (Highscore::exists()) 220 { 221 int score = this->getPoints(); 222 Highscore::getInstance().storeScore("Asteroids2D", score, this->getPlayer()->getPlayer()); 223 } 225 224 GSLevel::startMainMenu(); 226 225 }
Note: See TracChangeset
for help on using the changeset viewer.