activa -Wextra -Wpedantic i neteja warnings
This commit is contained in:
@@ -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_}};
|
||||
|
||||
Reference in New Issue
Block a user