From 267d9647e08be5b119e9498d74ab5f835a99db34 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Tue, 30 Sep 2025 13:38:06 +0200 Subject: [PATCH] moving_sprite.cpp: la variable rotate.speed ja no es gastava --- source/moving_sprite.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/moving_sprite.h b/source/moving_sprite.h index 7ab190e..5b7a9d3 100644 --- a/source/moving_sprite.h +++ b/source/moving_sprite.h @@ -15,7 +15,6 @@ class MovingSprite : public Sprite { // --- Estructuras --- struct Rotate { bool enabled{false}; // Indica si ha de rotar - int speed{1}; // Velocidad de giro double angle{0.0}; // Ángulo para dibujarlo float amount{0.0F}; // Cantidad de grados a girar en cada iteración SDL_FPoint center{.x = 0.0F, .y = 0.0F}; // Centro de rotación @@ -47,7 +46,6 @@ class MovingSprite : public Sprite { void setAngle(double value) { rotate_.angle = value; } // Establece el ángulo void setRotatingCenter(SDL_FPoint point) { rotate_.center = point; } // Establece el centro de rotación void setRotate(bool enable); // Activa o desactiva el efecto de rotación - void setRotateSpeed(int value) { rotate_.speed = std::max(1, value); } // Establece la velocidad de rotación void setRotateAmount(double value) { rotate_.amount = value; } // Establece la cantidad de rotación void switchRotate() { rotate_.amount *= -1; } // Cambia el sentido de la rotación void setFlip(SDL_FlipMode flip) { flip_ = flip; } // Establece el flip