Changeset 11326 for code/branches/Highscore_HS16/src/modules/dodgerace
- Timestamp:
- Dec 9, 2016, 1:37:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Highscore_HS16/src/modules/dodgerace/DodgeRace.cc
r11071 r11326 36 36 #include "DodgeRaceCube.h" 37 37 #include "core/CoreIncludes.h" 38 #include "Highscore.h" 38 39 39 40 namespace orxonox … … 224 225 // It will misteriously crash the game! 225 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("Player","Dodge Race",score); 231 232 } 226 233 GSLevel::startMainMenu(); 227 234 }
Note: See TracChangeset
for help on using the changeset viewer.