mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-03 14:52:11 +02:00
Removed some legacy code, work in progress.
This commit is contained in:
parent
2a9ddadedd
commit
8186fcae99
@ -569,9 +569,7 @@ void CMapGenerator::createConnections()
|
||||
float distanceFromA = posA.dist2d(tile);
|
||||
float distanceFromB = posB.dist2d(otherTile);
|
||||
|
||||
//if zone is underground, gate must fit within its (reduced) radius
|
||||
if (distanceFromA > 5 && (!posA.z || distanceFromA < zoneA->getSize() - 3) &&
|
||||
distanceFromB > 5 && (!posB.z || distanceFromB < zoneB->getSize() - 3))
|
||||
if (distanceFromA > 5 && distanceFromB > 5)
|
||||
{
|
||||
//all neightbouring tiles also belong to zone
|
||||
if (getZoneID(tile) == zoneAid && getZoneID(otherTile) == zoneBid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user