diff --git a/source/balloon_manager.cpp b/source/balloon_manager.cpp index 1f71262..846eaa9 100644 --- a/source/balloon_manager.cpp +++ b/source/balloon_manager.cpp @@ -211,8 +211,8 @@ void BalloonManager::createChildBalloon(const std::shared_ptr &balloon, .y = balloon->getPosY() + ((PARENT_HEIGHT - CHILD_HEIGHT) / 2), .size = static_cast(static_cast(balloon->getSize()) - 1), .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 auto b = createBalloon(config); @@ -251,9 +251,9 @@ void BalloonManager::createPowerBall() { .texture = balloon_textures_.at(4), .animation = balloon_animations_.at(4), .sound = { - .enabled = 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(config)); balloons_.back()->setInvulnerable(true);