mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge branch 'release' of https://github.com/VOREStation/VOREStation into izac
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user