This commit is contained in:
izac112
2020-05-30 16:01:43 +02:00
57 changed files with 19737 additions and 22761 deletions

View File

@@ -169,3 +169,11 @@
T.ChangeTurf(get_base_turf_by_area(T))
return TRUE
//Used for border objects. This returns true if this atom is on the border between the two specified turfs
//This assumes that the atom is located inside the target turf
/atom/proc/is_between_turfs(var/turf/origin, var/turf/target)
if (flags & ON_BORDER)
var/testdir = get_dir(target, origin)
return (dir & testdir)
return TRUE