Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2018, 9:16:52 PM (7 years ago)
Author:
landauf
Message:

[Highscore_HS16] removed playerName from Highscore because the player already has a name (see HumanPlayer.nick)

Location:
code/trunk/src/modules
Files:
5 edited

Legend:

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

    r11356 r11715  
    228228                    int score = this->getPoints();
    229229                    if(score > Highscore::getInstance().getHighestScoreOfGame("Dodge Race"))
    230                         Highscore::getInstance().storeHighscore("Dodge Race",score);
     230                        Highscore::getInstance().storeHighscore("Dodge Race",score,this->getPlayer()->getPlayer());
    231231
    232232          }
  • code/trunk/src/modules/invader/Invader.cc

    r11356 r11715  
    192192                    int score = this->getPoints();
    193193                    if(score > Highscore::getInstance().getHighestScoreOfGame("Orxonox Arcade"))
    194                         Highscore::getInstance().storeHighscore("Orxonox Arcade",score);
     194                        Highscore::getInstance().storeHighscore("Orxonox Arcade",score,this->getPlayer()->getPlayer());
    195195
    196196          }
  • code/trunk/src/modules/jump/Jump.cc

    r11356 r11715  
    315315                    int score = this->getScore(this->getPlayer());
    316316                    if(score > Highscore::getInstance().getHighestScoreOfGame("Jump"))
    317                         Highscore::getInstance().storeHighscore("Jump",score);
     317                        Highscore::getInstance().storeHighscore("Jump",score,this->getPlayer());
    318318
    319319          }
  • code/trunk/src/modules/tetris/Tetris.cc

    r11356 r11715  
    331331                    int score = this->getScore(this->getPlayer());
    332332                    if(score > Highscore::getInstance().getHighestScoreOfGame("Tetris"))
    333                         Highscore::getInstance().storeHighscore("Tetris",score);
     333                        Highscore::getInstance().storeHighscore("Tetris",score,this->getPlayer());
    334334
    335335          }
  • code/trunk/src/modules/towerdefense/TowerDefense.cc

    r11356 r11715  
    201201                    int score = this->getWaveNumber();
    202202                    if(score > Highscore::getInstance().getHighestScoreOfGame("Tower Defense"))
    203                         Highscore::getInstance().storeHighscore("Tower Defense",score);
     203                        Highscore::getInstance().storeHighscore("Tower Defense",score,this->getPlayer());
    204204
    205205          }
Note: See TracChangeset for help on using the changeset viewer.