Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2018, 9:48:58 PM (7 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/towerdefense/TowerDefense.cc

    r11715 r11716  
    198198    void TowerDefense::end()
    199199    {
    200         if (Highscore::exists()){
    201                     int score = this->getWaveNumber();
    202                     if(score > Highscore::getInstance().getHighestScoreOfGame("Tower Defense"))
    203                         Highscore::getInstance().storeHighscore("Tower Defense",score,this->getPlayer());
    204 
    205           }
     200        if (Highscore::exists())
     201        {
     202            int score = this->getWaveNumber();
     203            Highscore::getInstance().storeScore("Tower Defense", score, this->getPlayer());
     204        }
    206205        TeamDeathmatch::end();
    207206        ChatManager::message("Match is over! Gameover!");
Note: See TracChangeset for help on using the changeset viewer.