[512] Disallow cross-Z examination and manipulation

This commit is contained in:
Jordan Brown
2018-01-05 07:25:37 -08:00
committed by CitadelStationBot
parent 3266cdfe0c
commit 5c64e25288
2 changed files with 114 additions and 0 deletions
+7
View File
@@ -4,7 +4,14 @@
#define islist(L) (istype(L, /list))
#if DM_VERSION >= 512
#define in_range(source, user) (get_dist(source, user) <= 1 && (get_step(source, 0)?:z) == (get_step(user, 0)?:z))
#if DM_VERSION > 512
#warn Remove this check.
#endif
#else
#define in_range(source, user) (get_dist(source, user) <= 1)
#endif
#define ismovableatom(A) (istype(A, /atom/movable))