From 67b1c2cb4d13ce8bab52039c9a60fb3b7a5b05f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Sun, 12 Feb 2023 22:50:56 +0100 Subject: [PATCH] =?UTF-8?q?FIX:=20El=20modo=20demo=20subia=20la=20puntuaci?= =?UTF-8?q?=C3=B3n=20online?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/director.cpp | 6 +++--- source/game.cpp | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/source/director.cpp b/source/director.cpp index f5d823e..0a4675d 100644 --- a/source/director.cpp +++ b/source/director.cpp @@ -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; diff --git a/source/game.cpp b/source/game.cpp index eb4d13d..40fc489 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -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) {