Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2016, 1:37:46 PM (7 years ago)
Author:
kappenh
Message:

Finished Project, Maybe switch enumeration of highscores in table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Highscore_HS16/src/modules/dodgerace/DodgeRace.cc

    r11071 r11326  
    3636#include "DodgeRaceCube.h"
    3737#include "core/CoreIncludes.h"
     38#include "Highscore.h"
    3839
    3940namespace orxonox
     
    224225        // It will misteriously crash the game!
    225226        // Instead startMainMenu, this won't crash.
     227        if (Highscore::exists()){
     228                    int score = this->getPoints();
     229                    if(score > Highscore::getInstance().getHighestScoreOfGame("Dodge Race"))
     230                        Highscore::getInstance().storeHighscore("Player","Dodge Race",score);
     231
     232          }
    226233        GSLevel::startMainMenu();
    227234    }
Note: See TracChangeset for help on using the changeset viewer.