Changeset 11499 for code/branches/HUD_HS16/src/modules/invader
- 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/invader/Invader.cc
r11497 r11499 33 33 34 34 #include "Invader.h" 35 #include "Highscore.h" 35 36 36 #include "core/CoreIncludes.h" 37 37 #include "core/EventIncludes.h" … … 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);195 196 }197 191 GSLevel::startMainMenu(); 198 192 }
Note: See TracChangeset
for help on using the changeset viewer.