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/jump/Jump.cc

    r11715 r11716  
    312312        cleanup();
    313313        GSLevel::startMainMenu();
    314         if (Highscore::exists()){
    315                     int score = this->getScore(this->getPlayer());
    316                     if(score > Highscore::getInstance().getHighestScoreOfGame("Jump"))
    317                         Highscore::getInstance().storeHighscore("Jump",score,this->getPlayer());
    318 
    319           }
     314        if (Highscore::exists())
     315        {
     316            int score = this->getScore(this->getPlayer());
     317            Highscore::getInstance().storeScore("Jump", score, this->getPlayer());
     318        }
    320319        Deathmatch::end();
    321320    }
Note: See TracChangeset for help on using the changeset viewer.