Disallow cross-Z examination and manipulation

This commit is contained in:
Tad Hardesty
2017-11-13 21:40:35 -08:00
parent 79834fecbb
commit 6b6f3f0329
2 changed files with 10 additions and 3 deletions

View File

@@ -29,10 +29,10 @@
var/turf/T0 = get_turf(neighbor)
if(T0 == src) //same turf
return 1
return TRUE
if(get_dist(src,T0) > 1) //too far
return 0
if(get_dist(src, T0) > 1 || z != T0.z) //too far
return FALSE
// Non diagonal case
if(T0.x == x || T0.y == y)