浏览代码

Fix battle speed selector in settings

Ivan Savenko 2 年之前
父节点
当前提交
9d1a075806
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/battle/BattleInterface.cpp

+ 2 - 2
client/battle/BattleInterface.cpp

@@ -527,9 +527,9 @@ void BattleInterface::setAnimSpeed(int set)
 int BattleInterface::getAnimSpeed() const
 {
 	if(settings["session"]["spectate"].Bool() && !settings["session"]["spectate-battle-speed"].isNull())
-		return static_cast<int>(vstd::round(settings["session"]["spectate-battle-speed"].Float() *100));
+		return static_cast<int>(vstd::round(settings["session"]["spectate-battle-speed"].Float()));
 
-	return static_cast<int>(vstd::round(settings["battle"]["animationSpeed"].Float() *100));
+	return static_cast<int>(vstd::round(settings["battle"]["animationSpeed"].Float()));
 }
 
 CPlayerInterface *BattleInterface::getCurrentPlayerInterface() const