mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Allow center Town touch the blocked area, it's no longer a problem with correct pathfinder.
This commit is contained in:
@ -162,6 +162,8 @@ void TownPlacer::cleanupBoundaries(const rmg::Object & rmgObject)
|
||||
{
|
||||
Zone::Lock lock(zone.areaMutex);
|
||||
for(const auto & t : rmgObject.getArea().getBorderOutside())
|
||||
{
|
||||
if (t.y > rmgObject.getVisitablePosition().y) //Line below the town
|
||||
{
|
||||
if (map.isOnMap(t))
|
||||
{
|
||||
@ -171,6 +173,7 @@ void TownPlacer::cleanupBoundaries(const rmg::Object & rmgObject)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void TownPlacer::addNewTowns(int count, bool hasFort, const PlayerColor & player, ObjectManager & manager)
|
||||
{
|
||||
|
Reference in New Issue
Block a user