1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Mark obelisk visited for all players in the team

This commit is contained in:
Vadim Markovtsev 2016-01-20 11:14:03 +03:00
parent 10f888a483
commit bb3a31f3ff

View File

@ -1848,8 +1848,11 @@ void CGObelisk::onHeroVisit( const CGHeroInstance * h ) const
openWindow(OpenWindow::PUZZLE_MAP, h->tempOwner.getNum());
// mark that particular obelisk as visited
cb->setObjProperty(id, CGObelisk::OBJPROP_VISITED, h->tempOwner.getNum());
// mark that particular obelisk as visited for all players in the team
for (auto & color : ts->players)
{
cb->setObjProperty(id, CGObelisk::OBJPROP_VISITED, color.getNum());
}
}
else
{