Changeset 11326 for code/branches/Highscore_HS16/src/modules/tetris
- Timestamp:
- Dec 9, 2016, 1:37:46 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Highscore_HS16/src/modules/tetris/Tetris.cc
r11083 r11326 39 39 40 40 #include "Tetris.h" 41 #include "Highscore.h" 41 42 42 43 #include "core/CoreIncludes.h" … … 327 328 this->player_->stopControl(); 328 329 } 329 330 if (Highscore::exists()){ 331 int score = this->getScore(this->getPlayer()); 332 if(score > Highscore::getInstance().getHighestScoreOfGame("Tetris")) 333 Highscore::getInstance().storeHighscore("Player","Tetris",score); 334 335 } 330 336 this->cleanup(); 331 337
Note: See TracChangeset
for help on using the changeset viewer.