Merge pull request #4117 from Citadel-Station-13/upstream-merge-33015

[MIRROR] Deny buckling when the user is inside lockers, mechs, etc.
This commit is contained in:
deathride58
2017-11-25 05:36:22 +00:00
committed by GitHub
+1 -1
View File
@@ -99,7 +99,7 @@
//Wrapper procs that handle sanity and user feedback
/atom/movable/proc/user_buckle_mob(mob/living/M, mob/user, check_loc = TRUE)
if(!in_range(user, src) || user.stat || user.restrained())
if(!in_range(user, src) || !isturf(user.loc) || user.incapacitated())
return FALSE
add_fingerprint(user)