diff --git a/source/game.cpp b/source/game.cpp index a669990..ba0669b 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -922,20 +922,28 @@ void Game::updateTimeStopped() if (time_stopped_counter_ > 120) { if (time_stopped_counter_ % 30 == 0) + { JA_PlaySound(Resource::get()->getSound("clock.wav")); + } } else { - if (time_stopped_counter_ % 15 == 0) - JA_PlaySound(Resource::get()->getSound("clock.wav")); if (time_stopped_counter_ % 30 == 0) + { balloon_manager_->normalColorsToAllBalloons(); - if (time_stopped_counter_ % 30 == 15) + JA_PlaySound(Resource::get()->getSound("clock.wav")); + } + else if (time_stopped_counter_ % 30 == 15) + { balloon_manager_->reverseColorsToAllBalloons(); + JA_PlaySound(Resource::get()->getSound("clock.wav")); + } } } else + { disableTimeStopItem(); + } } // Actualiza el juego