- Timestamp:
- Feb 18, 2018, 4:27:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/superorxobros/SOBFigure.cc
r11766 r11768 385 385 if (reachedLvlEndState_ == 4) { 386 386 //Highscore 387 if (Highscore::exists()){ 388 int score = SOBGame->getPoints(); 389 if(score > Highscore::getInstance().getHighestScoreOfGame("Super Orxo Bros.")) 390 Highscore::getInstance().storeHighscore("Super Orxo Bros.",score); 391 SOBGame->newHighscore=1; 392 387 if (Highscore::exists()) 388 { 389 int score = SOBGame->getPoints(); 390 bool isHighScore = Highscore::getInstance().storeScore("Super Orxo Bros.", score, this->getPlayer()); 391 SOBGame->newHighscore = isHighScore; 393 392 } 394 393 lvlEnded_ = true;
Note: See TracChangeset
for help on using the changeset viewer.