1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-13 13:18:43 +02:00

Show info nin modal window always

This commit is contained in:
nordsoft 2023-05-07 03:19:18 +04:00
parent 67331c5520
commit 7c029bccba

View File

@ -412,7 +412,7 @@ void CTownRewardableBuilding::onHeroVisit(const CGHeroInstance *h) const
iw.player = h->tempOwner;
iw.text = vi.message;
vi.reward.loadComponents(iw.components, h);
iw.type = configuration.infoWindowType;
iw.type = EInfoWindowMode::MODAL;
if(!iw.components.empty() || !iw.text.toString().empty())
cb->showInfoDialog(&iw);