Merge pull request #11357 from Ghommie/Ghommie-cit606

Patches some awful integrated circuit examiner runtime errors.
This commit is contained in:
kevinz000
2020-03-08 08:14:58 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -407,6 +407,7 @@ GLOBAL_LIST_INIT(pda_reskins, list(PDA_SKIN_CLASSIC = 'icons/obj/pda.dmi', PDA_S
#define DUMMY_HUMAN_SLOT_ADMIN "admintools"
#define DUMMY_HUMAN_SLOT_MANIFEST "dummy_manifest_generation"
#define DUMMY_HUMAN_SLOT_HALLUCINATION "dummy_hallucination"
#define DUMMY_HUMAN_SLOT_EXAMINER "dummy_examiner"
#define PR_ANNOUNCEMENTS_PER_ROUND 5 //The number of unique PR announcements allowed per round
//This makes sure that a single person can only spam 3 reopens and 3 closes before being ignored
@@ -349,10 +349,11 @@
set_pin_data(IC_OUTPUT, 2, H.desc)
if(istype(H, /mob/living))
var/mob/living/M = H
var/msg = M.examine()
var/mob/living/carbon/human/D = generate_or_wait_for_human_dummy(DUMMY_HUMAN_SLOT_EXAMINER)
var/msg = H.examine(D)
if(msg)
set_pin_data(IC_OUTPUT, 2, msg)
unset_busy_human_dummy(DUMMY_HUMAN_SLOT_EXAMINER)
set_pin_data(IC_OUTPUT, 3, H.x-T.x)
set_pin_data(IC_OUTPUT, 4, H.y-T.y)