mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-28 03:57:02 +02:00
Mark obelisk visited for all players in the team
This commit is contained in:
parent
10f888a483
commit
bb3a31f3ff
@ -1848,8 +1848,11 @@ void CGObelisk::onHeroVisit( const CGHeroInstance * h ) const
|
|||||||
|
|
||||||
openWindow(OpenWindow::PUZZLE_MAP, h->tempOwner.getNum());
|
openWindow(OpenWindow::PUZZLE_MAP, h->tempOwner.getNum());
|
||||||
|
|
||||||
// mark that particular obelisk as visited
|
// mark that particular obelisk as visited for all players in the team
|
||||||
cb->setObjProperty(id, CGObelisk::OBJPROP_VISITED, h->tempOwner.getNum());
|
for (auto & color : ts->players)
|
||||||
|
{
|
||||||
|
cb->setObjProperty(id, CGObelisk::OBJPROP_VISITED, color.getNum());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user