- Timestamp:
- Feb 18, 2018, 4:02:50 PM (7 years ago)
- Location:
- code/branches/Presentation_HS17_merge
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge
-
code/branches/Presentation_HS17_merge/src/modules/superorxobros/SOB.cc
r11418 r11766 44 44 #include "SOBFigure.h" 45 45 #include "graphics/Camera.h" 46 #include "Highscore.h" 46 47 47 48 … … 49 50 namespace orxonox 50 51 { 51 52 bool newHighscore=0; 52 53 RegisterUnloadableClass(SOB); 53 54 … … 124 125 GSLevel::startMainMenu(); 125 126 Deathmatch::end(); 126 127 } 127 128 128 129 void SOB::restart() { … … 167 168 if (this->figure_ != nullptr && figure_->lvlEnded_) { 168 169 std::stringstream a; 169 a << "Nice! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart"; 170 if(!newHighscore){ 171 a << "Nice! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart"; 172 } 173 else{ 174 a << "Congrats, new Highscore! " << getPoints() << " Points in " << (400-getTimeLeft())/2 <<"s.\n\nPress <Space> to restart"; 175 } 170 176 info_ =a.str(); 171 177
Note: See TracChangeset
for help on using the changeset viewer.