FIX: El modo demo subia la puntuación online
This commit is contained in:
@@ -738,11 +738,11 @@ void Director::initOnline()
|
||||
// Establece el servidor y el puerto
|
||||
jscore::init(options->online.server, options->online.port);
|
||||
#ifdef DEBUG
|
||||
const std::string caption = lang->getText(85) + " (DEBUG)";
|
||||
const std::string caption = options->online.jailerID + " (DEBUG)";
|
||||
#else
|
||||
const std::string caption = lang->getText(85);
|
||||
const std::string caption = options->online.jailerID;
|
||||
#endif
|
||||
screen->showNotification(options->online.jailerID, caption, 12);
|
||||
screen->showNotification(options->online.jailerID, lang->getText(85), 12);
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << caption << std::endl;
|
||||
|
||||
@@ -771,6 +771,11 @@ bool Game::sendOnlineScore()
|
||||
return true;
|
||||
}
|
||||
|
||||
if (demo.enabled)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
const int score = players[0]->getScore();
|
||||
if (score <= options->online.score)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user