Arreglado el login online
This commit is contained in:
@@ -777,7 +777,7 @@ bool Game::sendOnlineScore()
|
||||
return true;
|
||||
}
|
||||
|
||||
if (jscore::updateUserPoints("coffee_crisis", options->online.jailerID, score))
|
||||
if (jscore::updateUserPoints(options->online.gameID, options->online.jailerID, score))
|
||||
{
|
||||
options->online.score = score;
|
||||
screen->showNotification("PUNTUACION ENVIADA: " + std::to_string(score) + " PUNTOS");
|
||||
@@ -1732,8 +1732,15 @@ void Game::renderScoreBoard()
|
||||
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset3, lang->getText(56));
|
||||
if (options->online.enabled)
|
||||
{
|
||||
const std::string txt = jscore::getUserName(0) + " - " + updateScoreText((Uint32)jscore::getPoints(0));
|
||||
textScoreBoard->writeCentered(PLAY_AREA_CENTER_X, offset4, txt);
|
||||
if (jscore::getNumUsers() > 0)
|
||||
{
|
||||
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, "Bacteriol - 0000010");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3056,7 +3063,7 @@ void Game::checkGameInput()
|
||||
players[index]->setFireCooldown(10);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (demo.dataFile[demo.counter].fireLeft == 1)
|
||||
{
|
||||
if (players[index]->canFire())
|
||||
|
||||
Reference in New Issue
Block a user