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

Fixes #9235
This commit is contained in:
mwerezak
2015-06-02 23:26:45 -04:00
parent 3434826eaf
commit 03412a24f8
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(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