瀏覽代碼

Fix "holding" animation speed

Ivan Savenko 2 年之前
父節點
當前提交
2ac997d8a9
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      client/battle/CreatureAnimation.cpp

+ 1 - 4
client/battle/CreatureAnimation.cpp

@@ -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: