[Orxonox-commit 7109] r11726 - code/branches/Presentation_HS17_merge/src/modules/asteroids2D
landauf at orxonox.net
landauf at orxonox.net
Sun Feb 11 00:33:56 CET 2018
Author: landauf
Date: 2018-02-11 00:33:56 +0100 (Sun, 11 Feb 2018)
New Revision: 11726
Modified:
code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2D.cc
Log:
[Asteroid_HS17] fixed build - highscore API was changed in the meantime
Modified: code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2D.cc
===================================================================
--- code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2D.cc 2018-02-10 23:26:40 UTC (rev 11725)
+++ code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2D.cc 2018-02-10 23:33:56 UTC (rev 11726)
@@ -216,12 +216,11 @@
// Deathmatch::end();
// It will misteriously crash the game!
// Instead startMainMenu, this won't crash.
- if (Highscore::exists()){
- int score = this->getPoints();
- if(score > Highscore::getInstance().getHighestScoreOfGame("Asteroids2D"))
- Highscore::getInstance().storeHighscore("Asteroids2D",score);
-
- }
+ if (Highscore::exists())
+ {
+ int score = this->getPoints();
+ Highscore::getInstance().storeScore("Asteroids2D", score, this->getPlayer()->getPlayer());
+ }
GSLevel::startMainMenu();
}
}
More information about the Orxonox-commit
mailing list