1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix turn timer settings

This commit is contained in:
nordsoft 2023-08-25 20:38:30 +04:00
parent d758727c23
commit 86e0ea15fb

View File

@ -78,7 +78,7 @@ OptionsTab::OptionsTab() : humanPlayers(0)
int time = parseTimerString(str) * 1000;
if(time >= 0)
{
TurnTimerInfo tinfo;
TurnTimerInfo tinfo = CSH->si->turnTimerInfo;
tinfo.baseTimer = time;
CSH->setTurnTimerInfo(tinfo);
}
@ -87,7 +87,7 @@ OptionsTab::OptionsTab() : humanPlayers(0)
int time = parseTimerString(str) * 1000;
if(time >= 0)
{
TurnTimerInfo tinfo;
TurnTimerInfo tinfo = CSH->si->turnTimerInfo;
tinfo.turnTimer = time;
CSH->setTurnTimerInfo(tinfo);
}
@ -96,7 +96,7 @@ OptionsTab::OptionsTab() : humanPlayers(0)
int time = parseTimerString(str) * 1000;
if(time >= 0)
{
TurnTimerInfo tinfo;
TurnTimerInfo tinfo = CSH->si->turnTimerInfo;
tinfo.battleTimer = time;
CSH->setTurnTimerInfo(tinfo);
}
@ -105,7 +105,7 @@ OptionsTab::OptionsTab() : humanPlayers(0)
int time = parseTimerString(str) * 1000;
if(time >= 0)
{
TurnTimerInfo tinfo;
TurnTimerInfo tinfo = CSH->si->turnTimerInfo;
tinfo.creatureTimer = time;
CSH->setTurnTimerInfo(tinfo);
}