Posibilidad de activar o desactivar el modo online
This commit is contained in:
@@ -730,6 +730,11 @@ bool Game::saveScoreFile()
|
||||
// Sube la puntuación online
|
||||
bool Game::sendOnlineScore()
|
||||
{
|
||||
if (!options->online.enabled)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
const int score = players.at(0)->getScore();
|
||||
if (score <= options->online.score)
|
||||
{
|
||||
@@ -1683,9 +1688,15 @@ void Game::renderScoreBoard()
|
||||
|
||||
// HI-SCORE
|
||||
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset3, lang->getText(56));
|
||||
// textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset4, updateScoreText(hiScore));
|
||||
const std::string txt = jscore::getUserName(0) + " - " + updateScoreText((Uint32)jscore::getPoints(0));
|
||||
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset4, txt);
|
||||
if (options->online.enabled)
|
||||
{
|
||||
const std::string txt = jscore::getUserName(0) + " - " + updateScoreText((Uint32)jscore::getPoints(0));
|
||||
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset4, txt);
|
||||
}
|
||||
else
|
||||
{
|
||||
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset4, updateScoreText(hiScore));
|
||||
}
|
||||
}
|
||||
|
||||
// Actualiza las variables del jugador
|
||||
|
||||
Reference in New Issue
Block a user