Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2018, 9:48:58 PM (6 years ago)
Author:
landauf
Message:

[Highscore_HS16] moved logic to compare old an new score to Highscore; fixed formatting in Gametypes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/tetris/Tetris.cc

    r11715 r11716  
    328328            this->player_->stopControl();
    329329        }
    330          if (Highscore::exists()){
    331                     int score = this->getScore(this->getPlayer());
    332                     if(score > Highscore::getInstance().getHighestScoreOfGame("Tetris"))
    333                         Highscore::getInstance().storeHighscore("Tetris",score,this->getPlayer());
    334 
    335           }
     330        if (Highscore::exists())
     331        {
     332            int score = this->getScore(this->getPlayer());
     333            Highscore::getInstance().storeScore("Tetris", score, this->getPlayer());
     334        }
    336335        this->cleanup();
    337336
Note: See TracChangeset for help on using the changeset viewer.