anchor.diff:  						if(!(source.canSmoothWith[target] & thing.smoothing_groups[target])) { \
   							continue; \
   						}; \
  -						junction |= direction; \
  +						junction |= direction_flag; \
   						break; \
   					}; \
  -					if(junction & direction) { \
  +					if(junction & direction_flag) { \
   						break; \
   					}; \
   				}; \
  
positive.code: #define DEFAULT_UNDERLAY_ICON_STATE 	"plating"
  
  
  #define SET_ADJ_IN_DIR(source, junction, direction) \
  	do { \
  		var/turf/neighbor = get_step(source, direction); \
  		if(!neighbor) { \
  			if(source.smoothing_flags & SMOOTH_BORDER) { \
  				junction |=  direction; \
  			}; \
  		}; \
  		else { \
  
negative.code: 	. = NONE //junction
  
  	for(var/direction in GLOB.cardinals) //Cardinal case first.
  		SET_ADJ_IN_DIR(src, ., direction, direction)
  
  	if(!(smoothing_flags & SMOOTH_DIAGONAL) || !(. & (NORTH|SOUTH)) || !(. & (EAST|WEST)))
  		icon_state = "[base_icon_state]-[.]"
  