Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11726


Ignore:
Timestamp:
Feb 11, 2018, 12:33:56 AM (6 years ago)
Author:
landauf
Message:

[Asteroid_HS17] fixed build - highscore API was changed in the meantime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/asteroids2D/Asteroids2D.cc

    r11669 r11726  
    217217        // It will misteriously crash the game!
    218218        // Instead startMainMenu, this won't crash.
    219         if (Highscore::exists()){
    220                     int score = this->getPoints();
    221                     if(score > Highscore::getInstance().getHighestScoreOfGame("Asteroids2D"))
    222                         Highscore::getInstance().storeHighscore("Asteroids2D",score);
    223 
    224           }
     219        if (Highscore::exists())
     220        {
     221            int score = this->getPoints();
     222            Highscore::getInstance().storeScore("Asteroids2D", score, this->getPlayer()->getPlayer());
     223        }
    225224        GSLevel::startMainMenu();
    226225    }
Note: See TracChangeset for help on using the changeset viewer.