1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix "holding" animation speed

This commit is contained in:
Ivan Savenko 2023-02-02 14:37:34 +02:00
parent 731f7b0578
commit 2ac997d8a9

View File

@ -78,10 +78,7 @@ float AnimationControls::getCreatureAnimationSpeed(const CCreature * creature, c
return baseSpeed;
case ECreatureAnimType::HOLDING:
if ( creature->animation.idleAnimationTime > 0.01)
return speed / creature->animation.idleAnimationTime;
else
return 0.f; // this animation is disabled for current creature
return creature->animation.idleAnimationTime;
case ECreatureAnimType::SHOOT_UP:
case ECreatureAnimType::SHOOT_FRONT: