1
0
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:
DjWarmonger 2016-08-13 12:42:45 +02:00
parent 2a9ddadedd
commit 8186fcae99

View File

@ -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)