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:
parent
2fff74deea
commit
d4ab3087cb
@ -61,7 +61,7 @@ void TurnTimerHandler::onPlayerMakingTurn(PlayerState & state, int waitTime)
|
|||||||
if(!si || !gs)
|
if(!si || !gs)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(si->turnTimerInfo.isEnabled() && !gs->curB)
|
if(state.human && si->turnTimerInfo.isEnabled() && !gs->curB)
|
||||||
{
|
{
|
||||||
if(state.turnTimer.turnTimer > 0)
|
if(state.turnTimer.turnTimer > 0)
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ void TurnTimerHandler::onBattleLoop(PlayerState & state, int waitTime)
|
|||||||
if(!si || !gs || !gs->curB)
|
if(!si || !gs || !gs->curB)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(si->turnTimerInfo.isBattleEnabled())
|
if(state.human && si->turnTimerInfo.isBattleEnabled())
|
||||||
{
|
{
|
||||||
if(state.turnTimer.creatureTimer > 0)
|
if(state.turnTimer.creatureTimer > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user