From f12ee3f7b3a3b25fdfa3d82a7c095c8b33f44480 Mon Sep 17 00:00:00 2001 From: Hubblenaut Date: Sat, 7 Jun 2014 18:27:22 +0200 Subject: [PATCH] Fixes some printouts causing a runtime error when photocopied --- code/WorkInProgress/autopsy.dm | 2 +- code/game/machinery/computer/message.dm | 2 +- code/modules/detectivework/detective_work.dm | 6 +++--- code/modules/paperwork/photocopier.dm | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/code/WorkInProgress/autopsy.dm b/code/WorkInProgress/autopsy.dm index 9c812ef7ae..33675a9319 100644 --- a/code/WorkInProgress/autopsy.dm +++ b/code/WorkInProgress/autopsy.dm @@ -157,7 +157,7 @@ var/obj/item/weapon/paper/P = new(usr.loc) P.name = "Autopsy Data ([target_name])" P.info = "[scan_data]" - P.overlays += "paper_words" + P.icon_state = "paper_words" if(istype(usr,/mob/living/carbon)) // place the item in the usr's hand if possible diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm index 71a545cd55..0cfc5fe362 100644 --- a/code/game/machinery/computer/message.dm +++ b/code/game/machinery/computer/message.dm @@ -505,5 +505,5 @@ if(!isnull(server.decryptkey)) info = "

Daily Key Reset


The new message monitor key is '[server.decryptkey]'.
Please keep this a secret and away from the clown.
If necessary, change the password to a more secure one." info_links = info - overlays += "paper_words" + icon_state = "paper_words" break diff --git a/code/modules/detectivework/detective_work.dm b/code/modules/detectivework/detective_work.dm index 9f2667b108..bb650b0215 100644 --- a/code/modules/detectivework/detective_work.dm +++ b/code/modules/detectivework/detective_work.dm @@ -262,7 +262,7 @@ obj/machinery/computer/forensic_scanning var/obj/item/weapon/paper/P = new(loc) var/list/dossier = files[href_list["identifier"]] P.name = "\improper Database File ([dossier[2]])" - P.overlays += "paper_words" + P.icon_state = "paper_words" P.info = "Criminal Evidence Database

" P.info += "Consolidated data points: [dossier[2]]
" var/print_string = "Fingerprints: Print not complete!
" @@ -338,7 +338,7 @@ obj/machinery/computer/forensic_scanning var/obj/item/weapon/paper/P = new(loc) var/list/outputs = misc[href_list["identifier"]] P.name = "\improper Auxiliary Database File ([outputs[3]])" - P.overlays += "paper_words" + P.icon_state = "paper_words" P.info = "Auxiliary Evidence Database

" P.info += "Consolidated data points: [outputs[3]]
" var/list/prints = outputs[4] @@ -433,7 +433,7 @@ obj/machinery/computer/forensic_scanning var/obj/item/weapon/paper/P = new(loc) P.name = "\improper Scan Data ([scan_name])" P.info = "[scan_data]" - P.overlays += "paper_words" + P.icon_state = "paper_words" else temp = "Print Failed: No Data" if("erase") diff --git a/code/modules/paperwork/photocopier.dm b/code/modules/paperwork/photocopier.dm index 2321d7587d..7f006325e6 100644 --- a/code/modules/paperwork/photocopier.dm +++ b/code/modules/paperwork/photocopier.dm @@ -80,6 +80,7 @@ p.loc = src.loc p.update_icon() p.icon_state = "paper_words" + p.name = bundle.name p.pixel_y = rand(-8, 8) p.pixel_x = rand(-9, 9) sleep(15*j)