Fixes picking up and dragging items from z-levels below (#33583)

* Fixes picking up and dragging items from z-levels below

* wrong map

* helps anyways

* helps anyways

Co-authored-by: SECBATON GRIFFON <sage>
This commit is contained in:
SECBATON GRIFFON
2022-10-28 23:50:16 +01:00
committed by GitHub
parent 567e890e97
commit c711d4585b
2 changed files with 5 additions and 5 deletions

View File

@@ -37,7 +37,7 @@
if(T0 == src) //same turf
return 1
if(get_dist(src, T0) > 1) //too far
if(get_z_dist(src, T0) > 1 || (src.z != T0.z && !(locate(/obj/structure/stairs) in src) && !(locate(/obj/structure/stairs) in T0))) //too far
continue
// Non diagonal case
@@ -157,4 +157,4 @@
for(var/obj/structure/window/W in loc)
if(W)
W.throwpass=0
return .
return .