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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user