Allows indirectly connected turfs to merge zones if either zone is small enough.

Fixes #9235

Conflicts:
	code/ZAS/Controller.dm
This commit is contained in:
mwerezak
2015-06-02 23:26:45 -04:00
parent a6604b2ca2
commit ec7f60f9ad
2 changed files with 5 additions and 3 deletions

View File

@@ -281,8 +281,8 @@ Total Unsimulated Turfs: [world.maxx*world.maxy*world.maxz - simulated_turf_coun
var/direct = !(block & ZONE_BLOCKED)
var/space = !istype(B)
if(direct && !space)
if(min(A.zone.contents.len, B.zone.contents.len) <= 10 || equivalent_pressure(A.zone,B.zone) || current_cycle == 0)
if(!space)
if(min(A.zone.contents.len, B.zone.contents.len) < ZONE_MIN_SIZE || (direct && (equivalent_pressure(A.zone,B.zone) || current_cycle == 0)))
merge(A.zone,B.zone)
return