Alguns arreglos en updateTimeStopped()

This commit is contained in:
2025-01-25 18:51:39 +01:00
parent f39e65afaf
commit f12a456017

View File

@@ -922,20 +922,28 @@ void Game::updateTimeStopped()
if (time_stopped_counter_ > 120) if (time_stopped_counter_ > 120)
{ {
if (time_stopped_counter_ % 30 == 0) if (time_stopped_counter_ % 30 == 0)
{
JA_PlaySound(Resource::get()->getSound("clock.wav")); JA_PlaySound(Resource::get()->getSound("clock.wav"));
}
} }
else else
{ {
if (time_stopped_counter_ % 15 == 0)
JA_PlaySound(Resource::get()->getSound("clock.wav"));
if (time_stopped_counter_ % 30 == 0) if (time_stopped_counter_ % 30 == 0)
{
balloon_manager_->normalColorsToAllBalloons(); 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(); balloon_manager_->reverseColorsToAllBalloons();
JA_PlaySound(Resource::get()->getSound("clock.wav"));
}
} }
} }
else else
{
disableTimeStopItem(); disableTimeStopItem();
}
} }
// Actualiza el juego // Actualiza el juego