mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-26 08:41:13 +02:00
Actually avoid only monsters
This commit is contained in:
parent
8f1638f78a
commit
4e88290962
@ -624,7 +624,10 @@ void ObjectManager::placeObject(rmg::Object & object, bool guarded, bool updateD
|
||||
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())
|
||||
|
Loading…
Reference in New Issue
Block a user