Changeset 11716 for code/trunk/src/modules/invader
- Timestamp:
- Jan 7, 2018, 9:48:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/invader/Invader.cc
r11715 r11716 189 189 // It will misteriously crash the game! 190 190 // Instead startMainMenu, this won't crash. 191 if (Highscore::exists()){ 192 int score = this->getPoints(); 193 if(score > Highscore::getInstance().getHighestScoreOfGame("Orxonox Arcade")) 194 Highscore::getInstance().storeHighscore("Orxonox Arcade",score,this->getPlayer()->getPlayer()); 195 196 } 191 if (Highscore::exists()) 192 { 193 int score = this->getPoints(); 194 Highscore::getInstance().storeScore("Orxonox Arcade", score, this->getPlayer()->getPlayer()); 195 } 197 196 GSLevel::startMainMenu(); 198 197 }
Note: See TracChangeset
for help on using the changeset viewer.