Changeset 11499 for code/branches/HUD_HS16/src/modules/dodgerace
- Timestamp:
- Oct 23, 2017, 2:56:00 PM (7 years ago)
- Location:
- code/branches/HUD_HS16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16
- Property svn:mergeinfo changed
-
code/branches/HUD_HS16/src/modules/dodgerace/DodgeRace.cc
r11497 r11499 36 36 #include "DodgeRaceCube.h" 37 37 #include "core/CoreIncludes.h" 38 #include "Highscore.h"39 38 40 39 namespace orxonox … … 225 224 // It will misteriously crash the game! 226 225 // 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);231 232 }233 226 GSLevel::startMainMenu(); 234 227 }
Note: See TracChangeset
for help on using the changeset viewer.