mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Actually avoid only monsters
This commit is contained in:
@@ -624,7 +624,10 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
|
|||||||
rp->areaIsolated().unite(borderAbove);
|
rp->areaIsolated().unite(borderAbove);
|
||||||
}
|
}
|
||||||
|
|
||||||
rp->areaVisitable().add(instance->getVisitablePosition());
|
if (instance->object().ID == Obj::MONSTER)
|
||||||
|
{
|
||||||
|
rp->areaVisitable().add(instance->getVisitablePosition());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (instance->object().ID.toEnum())
|
switch (instance->object().ID.toEnum())
|
||||||
|
|||||||
Reference in New Issue
Block a user