1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #2919 from Nordsoft91/fix-2893

This commit is contained in:
Nordsoft91
2023-09-23 18:02:33 +02:00
committed by GitHub

View File

@@ -103,6 +103,16 @@ std::string CGCreature::getHoverText(const CGHeroInstance * hero) const
void CGCreature::onHeroVisit( const CGHeroInstance * h ) const
{
//show message
if(!message.empty())
{
InfoWindow iw;
iw.player = h->tempOwner;
iw.text.appendRawString(message);
iw.type = EInfoWindowMode::MODAL;
cb->showInfoDialog(&iw);
}
int action = takenAction(h);
switch( action ) //decide what we do...
{