mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Enable one-way monoliths for AI
This commit is contained in:
@@ -473,7 +473,7 @@ std::vector <const CGObjectInstance *> CGameInfoCallback::getVisitableObjs(int3
|
||||
|
||||
for(const CGObjectInstance * obj : t->visitableObjects)
|
||||
{
|
||||
if(getPlayerID() || obj->ID != Obj::EVENT) //hide events from players
|
||||
if(!getPlayerID().has_value() || obj->ID != Obj::EVENT) //hide events from players
|
||||
ret.push_back(obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user