Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 18, 2018, 4:27:43 PM (6 years ago)
Author:
landauf
Message:

[SOBv2_HS17] fixed build (Highscopre API has changed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/orxonox/Highscore.cc

    r11717 r11768  
    8282    /**
    8383     * @brief stores a new highscore in the orxonox.ini file if the new score is better than the highest score so far.
     84     * @returns true if the given score marks a new high score
    8485     */
    85     void Highscore::storeScore(const std::string& level, int points, PlayerInfo* player)
     86    bool Highscore::storeScore(const std::string& level, int points, PlayerInfo* player)
    8687    {
    8788        if (points > this->getHighestScoreOfGame(level))
    8889        {
    8990            ModifyConfigValue(highscores_, add, player->getName() + "./." + level + "./." + multi_cast<std::string>(points));
     91            return true;
    9092        }
     93        else
     94            return false;
    9195    }
    9296}
Note: See TracChangeset for help on using the changeset viewer.