Procházet zdrojové kódy

Fix battle speed selector in settings

Ivan Savenko před 2 roky
rodič
revize
9d1a075806
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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