From f12a456017194bc91f45ba9b5767e0e609e50d8a Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sat, 25 Jan 2025 18:51:39 +0100 Subject: [PATCH] Alguns arreglos en updateTimeStopped() --- source/game.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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