1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix toggling of auto combat

This commit is contained in:
Ivan Savenko
2023-07-19 15:15:23 +03:00
parent c3584f7f91
commit e6d8b65e2c
3 changed files with 2 additions and 8 deletions

View File

@ -1904,8 +1904,9 @@ bool CPlayerInterface::capturedAllEvents()
}
bool needToLockAdventureMap = adventureInt && adventureInt->isActive() && CGI->mh->hasOngoingAnimations();
bool quickCombatOngoing = isAutoFightOn && !battleInt;
if (ignoreEvents || needToLockAdventureMap || isAutoFightOn)
if (ignoreEvents || needToLockAdventureMap || quickCombatOngoing )
{
GH.input().ignoreEventsUntilInput();
return true;