mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge pull request #4556 from IvanSavenko/town_building_visit
Implemented explicitly visitable town buildings, e.g. hota mana vortex
This commit is contained in:
@@ -88,7 +88,7 @@ void CGMine::onHeroVisit( const CGHeroInstance * h ) const
|
||||
BlockingDialog ynd(true,false);
|
||||
ynd.player = h->tempOwner;
|
||||
ynd.text.appendLocalString(EMetaText::ADVOB_TXT, isAbandoned() ? 84 : 187);
|
||||
cb->showBlockingDialog(&ynd);
|
||||
cb->showBlockingDialog(this, &ynd);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -310,7 +310,7 @@ void CGResource::onHeroVisit( const CGHeroInstance * h ) const
|
||||
BlockingDialog ynd(true,false);
|
||||
ynd.player = h->getOwner();
|
||||
ynd.text = message;
|
||||
cb->showBlockingDialog(&ynd);
|
||||
cb->showBlockingDialog(this, &ynd);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -879,7 +879,7 @@ void CGArtifact::onHeroVisit(const CGHeroInstance * h) const
|
||||
ynd.text.replaceRawString(getArmyDescription());
|
||||
ynd.text.replaceLocalString(EMetaText::GENERAL_TXT, 43); // creatures
|
||||
}
|
||||
cb->showBlockingDialog(&ynd);
|
||||
cb->showBlockingDialog(this, &ynd);
|
||||
}
|
||||
break;
|
||||
case Obj::SPELL_SCROLL:
|
||||
@@ -889,7 +889,7 @@ void CGArtifact::onHeroVisit(const CGHeroInstance * h) const
|
||||
BlockingDialog ynd(true,false);
|
||||
ynd.player = h->getOwner();
|
||||
ynd.text = message;
|
||||
cb->showBlockingDialog(&ynd);
|
||||
cb->showBlockingDialog(this, &ynd);
|
||||
}
|
||||
else
|
||||
blockingDialogAnswered(h, true);
|
||||
|
||||
Reference in New Issue
Block a user