clang-tidy
This commit is contained in:
@@ -294,12 +294,12 @@ bool Instructions::moveLines(std::vector<Line> &lines, int width, float duration
|
||||
bool all_lines_off_screen = true;
|
||||
|
||||
for (auto &line : lines) {
|
||||
// Establecer startTime en el primer cuadro de animación
|
||||
if (line.startTime == 0) {
|
||||
line.startTime = current_time + line.y * start_delay;
|
||||
// Establecer start_time en el primer cuadro de animación
|
||||
if (line.start_time == 0) {
|
||||
line.start_time = current_time + line.y * start_delay;
|
||||
}
|
||||
|
||||
float elapsed_time = (current_time - line.startTime) / 1000.0f; // Convertir a segundos
|
||||
float elapsed_time = (current_time - line.start_time) / 1000.0f; // Convertir a segundos
|
||||
if (elapsed_time < 0) {
|
||||
all_lines_off_screen = false; // Si aún no se debe mover esta línea, no están todas fuera de pantalla
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user