mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Place objects away from connection even if it's empty (not guarded)
This commit is contained in:
parent
64e8b9b2b9
commit
a5ddc225ac
@ -245,9 +245,12 @@ void ConnectionsPlacer::selfSideDirectConnection(const rmg::ZoneConnection & con
|
||||
}
|
||||
else
|
||||
{
|
||||
//Update distances from empty passage, too
|
||||
zone.areaPossible().erase(guardPos);
|
||||
zone.freePaths().add(guardPos);
|
||||
map.setOccupied(guardPos, ETileType::FREE);
|
||||
manager.updateDistances(guardPos);
|
||||
otherZone->getModificator<ObjectManager>()->updateDistances(guardPos);
|
||||
}
|
||||
|
||||
assert(zone.getModificator<RoadPlacer>());
|
||||
|
Loading…
Reference in New Issue
Block a user