Changeset 11716 for code/trunk/src/modules/dodgerace
- Timestamp:
- Jan 7, 2018, 9:48:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/dodgerace/DodgeRace.cc
r11715 r11716 225 225 // It will misteriously crash the game! 226 226 // Instead startMainMenu, this won't crash. 227 if (Highscore::exists()){ 228 int score = this->getPoints(); 229 if(score > Highscore::getInstance().getHighestScoreOfGame("Dodge Race")) 230 Highscore::getInstance().storeHighscore("Dodge Race",score,this->getPlayer()->getPlayer()); 231 232 } 227 if (Highscore::exists()) 228 { 229 int score = this->getPoints(); 230 Highscore::getInstance().storeScore("Dodge Race", score, this->getPlayer()->getPlayer()); 231 } 233 232 GSLevel::startMainMenu(); 234 233 }
Note: See TracChangeset
for help on using the changeset viewer.