From ffc1877195e56a0b4fac41d0ef2906b5ac99ca20 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Fri, 29 Jul 2016 19:39:17 -0700 Subject: [PATCH] Fixes a minor hiccup --- code/modules/space_management/space_transition.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/space_management/space_transition.dm b/code/modules/space_management/space_transition.dm index fefc076882b..4b16516d3f0 100644 --- a/code/modules/space_management/space_transition.dm +++ b/code/modules/space_management/space_transition.dm @@ -93,10 +93,10 @@ // it is already surrounded on all sides /datum/point/proc/set_neighbors(datum/spacewalk_grid/SW) neighbors.Cut() - neighbors |= SW.get(x+1, y) - neighbors |= SW.get(x-1, y) - neighbors |= SW.get(x, y+1) - neighbors |= SW.get(x, y-1) + neighbors |= SW.get(x+1, y, allow_empty = 1) + neighbors |= SW.get(x-1, y, allow_empty = 1) + neighbors |= SW.get(x, y+1, allow_empty = 1) + neighbors |= SW.get(x, y-1, allow_empty = 1) // Updates variables of the space level /datum/point/proc/set_space_level(datum/space_level/S) @@ -142,6 +142,7 @@ result -= thing return result +// This looks around itself to see if it has any active nodes within the cardinal directions /datum/point/proc/has_no_neighbors(datum/spacewalk_grid/SW) var/result = 1 if(spl)