mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix keymaster visitation status tracking
This commit is contained in:
parent
b0bd7bdb56
commit
d58ea6f28d
@ -778,7 +778,7 @@ void CGQuestGuard::serializeJsonOptions(JsonSerializeFormat & handler)
|
|||||||
|
|
||||||
bool CGKeys::wasMyColorVisited(const PlayerColor & player) const
|
bool CGKeys::wasMyColorVisited(const PlayerColor & player) const
|
||||||
{
|
{
|
||||||
return cb->getPlayerState(player)->visitedObjectsGlobal.count({ID, subID}) != 0;
|
return cb->getPlayerState(player)->visitedObjectsGlobal.count({Obj::KEYMASTER, subID}) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CGKeys::getHoverText(PlayerColor player) const
|
std::string CGKeys::getHoverText(PlayerColor player) const
|
||||||
|
Loading…
Reference in New Issue
Block a user