1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

vcmi: fix components other than resources in infobar

Do not redraw infobar when components shows and
we request to show current adventure hero.
Player already knows which hero he used to pick up
components.
This commit is contained in:
Konstantin
2023-03-06 14:10:33 +03:00
parent 38d8585be3
commit 2fb2a79ca4
3 changed files with 28 additions and 5 deletions

View File

@@ -275,6 +275,11 @@ void CInfoBar::showComponent(const Component & comp, std::string message)
redraw();
}
bool CInfoBar::showingComponents()
{
return state == COMPONENT;
}
void CInfoBar::startEnemyTurn(PlayerColor color)
{
OBJECT_CONSTRUCTION_CUSTOM_CAPTURING(255-DISPOSE);