Tape Recorder Fix (#9240)

Fixed tape recorders being unable to print their transcripts after a while.
This commit is contained in:
Geeves
2020-06-30 20:33:07 +02:00
committed by GitHub
parent 3251a58b37
commit abd7ffab9e
2 changed files with 11 additions and 5 deletions
@@ -235,11 +235,10 @@
P.name = "Transcript"
usr.put_in_hands(P)
can_print = FALSE
addtimer(CALLBACK(src, .proc/toggle_can_print), 300)
can_print = TRUE
addtimer(CALLBACK(src, .proc/set_can_print, 1), 150)
/obj/item/device/taperecorder/proc/toggle_can_print()
can_print = !can_print
/obj/item/device/taperecorder/proc/set_can_print(var/set_state = TRUE)
can_print = set_state
/obj/item/device/taperecorder/verb/eject_usb()
set name = "Eject Portable Storage"
@@ -263,7 +262,8 @@
file_data += "[printed_message]<BR>"
F.stored_data = file_data
portable_drive.store_file(F)
if(!portable_drive.store_file(F))
to_chat(usr, SPAN_WARNING("\The [portable_drive] does not have enough space to store the latest transcript, but will eject anyway."))
to_chat(usr, SPAN_NOTICE("You eject the portable drive."))
usr.put_in_hands(portable_drive)
+6
View File
@@ -0,0 +1,6 @@
author: Geeves
delete-after: True
changes:
- bugfix: "Fixed tape recorders being unable to print their transcripts after a while."