mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Implemented playerGlobal visit mode for objects like cartographer
This commit is contained in:
@@ -815,7 +815,7 @@ void CGKeymasterTent::onHeroVisit( const CGHeroInstance * h ) const
|
||||
if (!wasMyColorVisited (h->getOwner()) )
|
||||
{
|
||||
ChangeObjectVisitors cow;
|
||||
cow.mode = ChangeObjectVisitors::VISITOR_GLOBAL;
|
||||
cow.mode = ChangeObjectVisitors::VISITOR_ADD_PLAYER;
|
||||
cow.hero = h->id;
|
||||
cow.object = id;
|
||||
cb->sendAndApply(cow);
|
||||
|
||||
Reference in New Issue
Block a user