mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +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:
@@ -244,7 +244,7 @@ void CGDwelling::onHeroVisit( const CGHeroInstance * h ) const
|
||||
else
|
||||
bd.text.replaceLocalString(EMetaText::ARRAY_TXT, 173 + (int)Slots().begin()->second->getQuantityID()*3);
|
||||
bd.text.replaceName(*Slots().begin()->second);
|
||||
cb->showBlockingDialog(&bd);
|
||||
cb->showBlockingDialog(this, &bd);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ void CGDwelling::onHeroVisit( const CGHeroInstance * h ) const
|
||||
bd.flags |= BlockingDialog::SAFE_TO_AUTOACCEPT;
|
||||
}
|
||||
|
||||
cb->showBlockingDialog(&bd);
|
||||
cb->showBlockingDialog(this, &bd);
|
||||
}
|
||||
|
||||
void CGDwelling::newTurn(vstd::RNG & rand) const
|
||||
|
||||
Reference in New Issue
Block a user