activa -Wextra -Wpedantic i neteja warnings

This commit is contained in:
2026-05-18 22:36:01 +02:00
parent 5349c60c39
commit 02bc4de6d5
17 changed files with 80 additions and 38 deletions
+14 -4
View File
@@ -114,7 +114,9 @@ void BalloonManager::deployRandomFormation(int stage) {
.size = balloon.size,
.vel_x = balloon.vel_x,
.game_tempo = balloon_speed_,
.creation_counter = creation_time_enabled_ ? balloon.creation_counter : 0.0F};
.creation_counter = creation_time_enabled_ ? balloon.creation_counter : 0.0F,
.animation = {},
.sound = {}};
createBalloon(config);
}
@@ -135,7 +137,9 @@ void BalloonManager::deployFormation(int formation_id) {
.size = balloon.size,
.vel_x = balloon.vel_x,
.game_tempo = balloon_speed_,
.creation_counter = balloon.creation_counter};
.creation_counter = balloon.creation_counter,
.animation = {},
.sound = {}};
createBalloon(config);
}
}
@@ -151,7 +155,9 @@ void BalloonManager::deployFormation(int formation_id, float y) {
.size = balloon.size,
.vel_x = balloon.vel_x,
.game_tempo = balloon_speed_,
.creation_counter = balloon.creation_counter};
.creation_counter = balloon.creation_counter,
.animation = {},
.sound = {}};
createBalloon(config);
}
}
@@ -213,7 +219,9 @@ void BalloonManager::createChildBalloon(const std::shared_ptr<Balloon>& parent_b
.size = static_cast<Balloon::Size>(static_cast<int>(parent_balloon->getSize()) - 1),
.vel_x = direction == "LEFT" ? Balloon::VELX_NEGATIVE : Balloon::VELX_POSITIVE,
.game_tempo = balloon_speed_,
.creation_counter = 0};
.creation_counter = 0,
.animation = {},
.sound = {}};
// Crea el globo hijo
auto child_balloon = createBalloon(config);
@@ -267,6 +275,8 @@ void BalloonManager::createPowerBall() {
.texture = balloon_textures_.at(4),
.animation = balloon_animations_.at(4),
.sound = {
.bouncing_file = {},
.popping_file = {},
.bouncing_enabled = bouncing_sound_enabled_,
.poping_enabled = poping_sound_enabled_,
.enabled = sound_enabled_}};