fix: xicotets errors al codi que he detectat al canviar de SO
This commit is contained in:
@@ -1732,7 +1732,7 @@ void Game::initPlayers(int player_id)
|
||||
|
||||
players_.emplace_back(std::make_unique<Player>(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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <SDL3/SDL_pixels.h> // Para SDL_PIXELFORMAT_RGBA8888
|
||||
#include <SDL3/SDL_timer.h> // Para SDL_GetTicks
|
||||
#include <algorithm> // Para max
|
||||
#include <array> // Para array
|
||||
#include <utility> // Para move
|
||||
#include <vector> // 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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user