diff --git a/source/game.cpp b/source/game.cpp index afc12fe..3e56ff6 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1732,7 +1732,7 @@ void Game::initPlayers(int player_id) players_.emplace_back(std::make_unique(2, param.game.play_area.third_quarter_x - 15, y, demo_.enabled, param.game.play_area.rect, player_textures_[1], player_animations_)); players_.back()->setScoreBoardPanel(SCOREBOARD_RIGHT_PANEL); - players_.back()->setName(lang::getText("SCOREBOARD_53")); + players_.back()->setName(lang::getText("SCOREBOARD_54")); players_.back()->setController(getController(players_.back()->getId())); // Activa el jugador que coincide con el "player_id" diff --git a/source/global_inputs.cpp b/source/global_inputs.cpp index 2d5ad6c..f6fd009 100644 --- a/source/global_inputs.cpp +++ b/source/global_inputs.cpp @@ -31,7 +31,7 @@ namespace globalInputs // Si la notificación de salir no está activa, muestra la notificación #ifdef ARCADE const std::string TEXT = code == section::Options::QUIT_WITH_CONTROLLER ? lang::getText("NOTIFICATIONS_116") : lang::getText("NOTIFICATIONS_94"); - Notifier::get()->show(TEXT, std::string()}, -1, CODE); + Notifier::get()->show({TEXT, std::string()}, -1, CODE); #else Notifier::get()->show({lang::getText("NOTIFICATIONS_94"), std::string()}, -1, CODE); #endif diff --git a/source/instructions.cpp b/source/instructions.cpp index f936fc5..8451b21 100644 --- a/source/instructions.cpp +++ b/source/instructions.cpp @@ -4,6 +4,7 @@ #include // Para SDL_PIXELFORMAT_RGBA8888 #include // Para SDL_GetTicks #include // Para max +#include // Para array #include // Para move #include // Para vector #include "fade.h" // Para Fade, FadeMode, FadeType @@ -144,9 +145,8 @@ void Instructions::fillTexture() lang::getText("INSTRUCTIONS_18"), lang::getText("INSTRUCTIONS_19"), lang::getText("INSTRUCTIONS_20"), - lang::getText("INSTRUCTIONS_21") - }; - for (const auto& desc : ITEM_DESCRIPTIONS) + lang::getText("INSTRUCTIONS_21")}; + for (const auto &desc : ITEM_DESCRIPTIONS) { const int l = text_->lenght(desc); lenght = l > lenght ? l : lenght; diff --git a/source/service_menu.cpp b/source/service_menu.cpp index 249ea87..250746f 100644 --- a/source/service_menu.cpp +++ b/source/service_menu.cpp @@ -171,7 +171,7 @@ void ServiceMenu::setSelectorUp() { if (display_options_.empty()) return; - selected_ = (selected_ > 0) ? --selected_ : display_options_.size() - 1; + selected_ = (selected_ > 0) ? selected_ - 1 : display_options_.size() - 1; playMenuSound(); }