mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Show quest description only after visit
This commit is contained in:
parent
d7d8177390
commit
2f3d14da5c
@ -531,6 +531,7 @@ std::string CGSeerHut::getPopupText(const CGHeroInstance * hero) const
|
||||
std::vector<Component> CGSeerHut::getPopupComponents(PlayerColor player) const
|
||||
{
|
||||
std::vector<Component> result;
|
||||
if (quest->activeForPlayers.count(player))
|
||||
quest->mission.loadComponents(result, nullptr);
|
||||
return result;
|
||||
}
|
||||
@ -538,6 +539,7 @@ std::vector<Component> CGSeerHut::getPopupComponents(PlayerColor player) const
|
||||
std::vector<Component> CGSeerHut::getPopupComponents(const CGHeroInstance * hero) const
|
||||
{
|
||||
std::vector<Component> result;
|
||||
if (quest->activeForPlayers.count(hero->getOwner()))
|
||||
quest->mission.loadComponents(result, hero);
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user