Añadido todo.txt
This commit is contained in:
@@ -251,11 +251,7 @@ void MovingSprite::rotate()
|
||||
if (enabled)
|
||||
if (rotateEnabled)
|
||||
{
|
||||
if (rotateSpeed == 0)
|
||||
{
|
||||
incAngle(rotateAmount);
|
||||
}
|
||||
else if (counter % rotateSpeed == 0)
|
||||
if (counter % rotateSpeed == 0)
|
||||
{
|
||||
incAngle(rotateAmount);
|
||||
}
|
||||
@@ -271,7 +267,14 @@ void MovingSprite::setRotate(bool value)
|
||||
// Establece el valor de la variable
|
||||
void MovingSprite::setRotateSpeed(int value)
|
||||
{
|
||||
rotateSpeed = value;
|
||||
if (value < 1)
|
||||
{
|
||||
rotateSpeed = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
rotateSpeed = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
|
||||
Reference in New Issue
Block a user