mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
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:
@@ -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 .
|
||||
|
||||
Reference in New Issue
Block a user