mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Disallow cross-Z examination and manipulation
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user