Closets and chairs will not produce a slowdown when they do not have a mob in them (#10022)

This commit is contained in:
mikomyazaki
2020-09-21 11:07:55 +01:00
committed by GitHub
parent 476519332e
commit fdbfcf180b
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -213,7 +213,8 @@
. = 0
if(istype(pulling, /obj/structure))
var/obj/structure/P = pulling
. += P.slowdown
if(P.buckled_mob || locate(/mob) in P.contents)
. += P.slowdown
/mob/proc/Life()
return