1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Disable timer for AI players

This commit is contained in:
nordsoft 2023-08-19 19:00:08 +04:00
parent 2fff74deea
commit d4ab3087cb

View File

@ -61,7 +61,7 @@ void TurnTimerHandler::onPlayerMakingTurn(PlayerState & state, int waitTime)
if(!si || !gs)
return;
if(si->turnTimerInfo.isEnabled() && !gs->curB)
if(state.human && si->turnTimerInfo.isEnabled() && !gs->curB)
{
if(state.turnTimer.turnTimer > 0)
{
@ -128,7 +128,7 @@ void TurnTimerHandler::onBattleLoop(PlayerState & state, int waitTime)
if(!si || !gs || !gs->curB)
return;
if(si->turnTimerInfo.isBattleEnabled())
if(state.human && si->turnTimerInfo.isBattleEnabled())
{
if(state.turnTimer.creatureTimer > 0)
{