From df4fe33c3acd699bad510dfedb99fb2ecb6968bc Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 6 Mar 2023 16:28:54 +0200 Subject: [PATCH] Do not switch InfoBar to hero during another player turn --- client/CPlayerInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/CPlayerInterface.cpp b/client/CPlayerInterface.cpp index 5fe8d706b..d6be0044d 100644 --- a/client/CPlayerInterface.cpp +++ b/client/CPlayerInterface.cpp @@ -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(GH.listInt.front().get())) //don't remove dialogs that expect query answer GH.popInts(1); }