migracio de LoadingScreen completada

This commit is contained in:
2025-10-26 19:55:25 +01:00
parent d1acc59319
commit 6d2a116d15

View File

@@ -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<int>(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) {