fixes people not being unbuckled from stuff if they're being pulled (#22209)

* fixes people not being unbuckled from stuff if they're being pulled

* could come up

* Update code/modules/mob/mob_movement.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
GDN
2023-09-07 05:12:43 -05:00
committed by GitHub
parent c16c18409d
commit cfc6e19aef
+2 -3
View File
@@ -370,12 +370,11 @@
var/mob/M = pulling
var/atom/movable/t = M.pulling
M.stop_pulling()
step(pulling, get_dir(pulling.loc, A))
. = step(pulling, get_dir(pulling.loc, A)) // we set the return value to step here, if we don't having someone buckled in to a chair and being pulled won't let them be unbuckeled
if(M)
M.start_pulling(t)
else
step(pulling, get_dir(pulling.loc, A))
return TRUE
. = step(pulling, get_dir(pulling.loc, A))
/mob/proc/update_gravity(has_gravity)
return