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

Do not switch InfoBar to hero during another player turn

This commit is contained in:
Ivan Savenko 2023-03-06 16:28:54 +02:00
parent 3d71f8b46d
commit df4fe33c3a

View File

@ -1963,7 +1963,8 @@ void CPlayerInterface::playerStartsTurn(PlayerColor player)
}
else
{
adventureInt->infoBar->showSelection();
if (player == playerID)
adventureInt->infoBar->showSelection();
while (GH.listInt.front() != adventureInt && !dynamic_cast<CInfoWindow*>(GH.listInt.front().get())) //don't remove dialogs that expect query answer
GH.popInts(1);
}