From 6d2a116d159da344354d4cfb89b25ff22cb20087 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 26 Oct 2025 19:55:25 +0100 Subject: [PATCH] migracio de LoadingScreen completada --- source/game/scenes/loading_screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/game/scenes/loading_screen.cpp b/source/game/scenes/loading_screen.cpp index 2e5406f..e8fb09c 100644 --- a/source/game/scenes/loading_screen.cpp +++ b/source/game/scenes/loading_screen.cpp @@ -164,8 +164,8 @@ void LoadingScreen::updateColorLoad(float delta_time) { const int total_iterations = COLOR_TOTAL_BLOCKS / 2; // 768 / 2 = 384 iteraciones const int current_iteration = static_cast(progress * total_iterations); - // Convertir a bloque (incrementa de 2 en 2, empezando en 2) - const int current_block = (current_iteration + 1) * 2; + // Convertir a bloque (incrementa de 2 en 2, empezando en 0) + const int current_block = current_iteration * 2; // Verificar si ha completado todos los bloques if (current_block >= COLOR_TOTAL_BLOCKS) {