1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix battle speed selector in settings

This commit is contained in:
Ivan Savenko 2023-01-28 14:00:49 +02:00
parent a853045509
commit 9d1a075806

View File

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