treball en curs: correccions de tidy

This commit is contained in:
2026-05-16 15:12:28 +02:00
parent b1392d0c00
commit 18cd287808
5 changed files with 558 additions and 578 deletions
+12 -5
View File
@@ -129,7 +129,7 @@ void Title::init() {
// Pone valores por defecto. El primer jugador el teclado. El segundo jugador el primer mando
device_index_.clear();
device_index_.push_back(available_input_devices_.size() - 1); // El último dispositivo encontrado es el teclado
device_index_.push_back(0); // El primer mando encontrado. Si no ha encontrado ninguno es el teclado
device_index_.push_back(0); // El primer mando encontrado. Si no ha encontrado ninguno es el teclado
// Si ha encontrado un mando se lo asigna al segundo jugador
if (Input::get()->gameControllerFound()) {
@@ -220,10 +220,17 @@ void Title::update() {
ticks_ = SDL_GetTicks();
switch (section_->subsection) {
case SUBSECTION_TITLE_1: updateTitle1(); break;
case SUBSECTION_TITLE_2: updateTitle2(); break;
case SUBSECTION_TITLE_3: updateTitle3(); break;
default: break;
case SUBSECTION_TITLE_1:
updateTitle1();
break;
case SUBSECTION_TITLE_2:
updateTitle2();
break;
case SUBSECTION_TITLE_3:
updateTitle3();
break;
default:
break;
}
}