mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Fix toggling of auto combat
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user