Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 15, 2018, 11:42:36 PM (7 years ago)
Author:
landauf
Message:

[FlappyOrx_HS17] fixed build (Highscopre API has changed; usleep is not defined and sleeping 1ms is probably not needed anyway)

Location:
code/branches/Presentation_HS17_merge/src/modules/flappyorx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.cc

    r11631 r11754  
    262262       
    263263        //Update Highscore
    264         if (Highscore::exists()){
    265                     int score = this->getPoints();
    266                     if(score > Highscore::getInstance().getHighestScoreOfGame("Flappy Orx"))
    267                         Highscore::getInstance().storeHighscore("Flappy Orx",score);
     264        if (Highscore::exists())
     265        {
     266            int score = this->getPoints();
     267            Highscore::getInstance().storeScore("Flappy Orx", score, this->getPlayer()->getPlayer());
    268268        }
    269269
     
    281281    void FlappyOrx::end()
    282282    {
    283         if (Highscore::exists()){
    284                     int score = this->getPoints();
    285                     if(score > Highscore::getInstance().getHighestScoreOfGame("Orxonox Arcade"))
    286                         Highscore::getInstance().storeHighscore("Orxonox Arcade",score);
    287 
    288           }
    289283        GSLevel::startMainMenu();
    290284    }
  • code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrxShip.cc

    r11635 r11754  
    176176        velocity.y = 0;
    177177        setPosition(pos);
    178         usleep(1000u);
    179178    }
    180179}
Note: See TracChangeset for help on using the changeset viewer.