warning: balloon_manager.cpp varios ordres de inicialització mal
This commit is contained in:
@@ -211,8 +211,8 @@ void BalloonManager::createChildBalloon(const std::shared_ptr<Balloon> &balloon,
|
|||||||
.y = balloon->getPosY() + ((PARENT_HEIGHT - CHILD_HEIGHT) / 2),
|
.y = balloon->getPosY() + ((PARENT_HEIGHT - CHILD_HEIGHT) / 2),
|
||||||
.size = static_cast<Balloon::Size>(static_cast<int>(balloon->getSize()) - 1),
|
.size = static_cast<Balloon::Size>(static_cast<int>(balloon->getSize()) - 1),
|
||||||
.vel_x = direction == "LEFT" ? Balloon::VELX_NEGATIVE : Balloon::VELX_POSITIVE,
|
.vel_x = direction == "LEFT" ? Balloon::VELX_NEGATIVE : Balloon::VELX_POSITIVE,
|
||||||
.creation_counter = 0,
|
.speed = balloon_speed_,
|
||||||
.speed = balloon_speed_};
|
.creation_counter = 0};
|
||||||
|
|
||||||
// Crea el globo
|
// Crea el globo
|
||||||
auto b = createBalloon(config);
|
auto b = createBalloon(config);
|
||||||
@@ -251,9 +251,9 @@ void BalloonManager::createPowerBall() {
|
|||||||
.texture = balloon_textures_.at(4),
|
.texture = balloon_textures_.at(4),
|
||||||
.animation = balloon_animations_.at(4),
|
.animation = balloon_animations_.at(4),
|
||||||
.sound = {
|
.sound = {
|
||||||
.enabled = sound_enabled_,
|
|
||||||
.bouncing_enabled = bouncing_sound_enabled_,
|
.bouncing_enabled = bouncing_sound_enabled_,
|
||||||
.poping_enabled = poping_sound_enabled_}};
|
.poping_enabled = poping_sound_enabled_,
|
||||||
|
.enabled = sound_enabled_}};
|
||||||
|
|
||||||
balloons_.emplace_back(std::make_unique<Balloon>(config));
|
balloons_.emplace_back(std::make_unique<Balloon>(config));
|
||||||
balloons_.back()->setInvulnerable(true);
|
balloons_.back()->setInvulnerable(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user