- Timestamp:
- Nov 27, 2017, 3:32:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOB.cc
r11418 r11601 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.