Fixes mobs being unable to hear from inside machines or objects. (#14823)

This commit is contained in:
Matt Atlas
2022-09-16 15:29:31 +02:00
committed by GitHub
parent bf9dca275d
commit 640682ffaf
18 changed files with 168 additions and 120 deletions
+2
View File
@@ -49,6 +49,8 @@ datum/unit_test/observation/moved_shall_not_register_on_enter_without_listeners/
var/turf/T = locate(20,20,1)
var/mob/living/carbon/human/H = new(T)
var/obj/structure/closet/C = new(T)
qdel(H.virtual_mob)
H.virtual_mob = null
H.forceMove(C)
if(!is_listening_to_movement(C, H))