diff --git a/code/game/gamemodes/miniantags/borer/borer.dm b/code/game/gamemodes/miniantags/borer/borer.dm index 635071696c6..106b7b5cde7 100644 --- a/code/game/gamemodes/miniantags/borer/borer.dm +++ b/code/game/gamemodes/miniantags/borer/borer.dm @@ -590,10 +590,10 @@ GrantBorerActions() RemoveInfestActions() forceMove(get_turf(host)) - machine = null + unset_machine() host.reset_perspective(null) - host.machine = null + host.unset_machine() var/mob/living/carbon/H = host H.borer = null @@ -774,7 +774,7 @@ controlling = FALSE reset_perspective(null) - machine = null + unset_machine() host.verbs -= /mob/living/carbon/proc/release_control host.verbs -= /mob/living/carbon/proc/punish_host diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index b65a08bbfbb..8e4f015bcde 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -171,6 +171,7 @@ /mob/proc/unset_machine() if(machine) + UnregisterSignal(machine, COMSIG_PARENT_QDELETING) machine.on_unset_machine(src) machine = null @@ -184,6 +185,7 @@ src.machine = O if(istype(O)) O.in_use = TRUE + RegisterSignal(O, COMSIG_PARENT_QDELETING, .proc/unset_machine) /obj/item/proc/updateSelfDialog() var/mob/M = src.loc diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index 529063879f2..b692c49c6e7 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -738,21 +738,6 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( if(M) M.transfer_ai(AI_MECH_HACK, src, usr) //Called om the mech itself. - else if(href_list["faketrack"]) - var/mob/target = locate(href_list["track"]) in GLOB.mob_list - var/mob/living/silicon/ai/A = locate(href_list["track2"]) in GLOB.mob_list - if(A && target) - - A.cameraFollow = target - to_chat(A, "Now tracking [target.name] on camera.") - if(usr.machine == null) - usr.machine = usr - - while(cameraFollow == target) - to_chat(usr, "Target is not on or near any active cameras on the station. We'll check again in 5 seconds (unless you use the cancel-camera verb).") - sleep(40) - continue - else if(href_list["open"]) var/mob/target = locate(href_list["open"]) in GLOB.mob_list if(target)