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/invader/Invader.cc

    r11715 r11716  
    189189        // It will misteriously crash the game!
    190190        // Instead startMainMenu, this won't crash.
    191         if (Highscore::exists()){
    192                     int score = this->getPoints();
    193                     if(score > Highscore::getInstance().getHighestScoreOfGame("Orxonox Arcade"))
    194                         Highscore::getInstance().storeHighscore("Orxonox Arcade",score,this->getPlayer()->getPlayer());
    195 
    196           }
     191        if (Highscore::exists())
     192        {
     193            int score = this->getPoints();
     194            Highscore::getInstance().storeScore("Orxonox Arcade", score, this->getPlayer()->getPlayer());
     195        }
    197196        GSLevel::startMainMenu();
    198197    }
Note: See TracChangeset for help on using the changeset viewer.