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/dodgerace/DodgeRace.cc

    r11715 r11716  
    225225        // It will misteriously crash the game!
    226226        // Instead startMainMenu, this won't crash.
    227         if (Highscore::exists()){
    228                     int score = this->getPoints();
    229                     if(score > Highscore::getInstance().getHighestScoreOfGame("Dodge Race"))
    230                         Highscore::getInstance().storeHighscore("Dodge Race",score,this->getPlayer()->getPlayer());
    231 
    232           }
     227        if (Highscore::exists())
     228        {
     229            int score = this->getPoints();
     230            Highscore::getInstance().storeScore("Dodge Race", score, this->getPlayer()->getPlayer());
     231        }
    233232        GSLevel::startMainMenu();
    234233    }
Note: See TracChangeset for help on using the changeset viewer.