From 8e81af9f5ff83e3cbc0b8f273a8ae1128e976fe9 Mon Sep 17 00:00:00 2001 From: Ren Erthilo Date: Sun, 22 Apr 2012 19:30:13 +0100 Subject: [PATCH] TG: - Added instructions on how to use the pretty markup to the changelog - Added a few red corner floor pieces to security - Added a Del() proc to blackbox recorders which makes it so a new blackbox recorder gets made when the one is deleted and all the data is copied over, so no data is lost. Same applies when the new one gets deleted. The new blackbox is spawned on z-level 2, so at centcom on the coordinates X,Y,Z = 1,1,2 Revision: r3084 Author: baloh.matevz --- code/modules/research/message_server.dm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/code/modules/research/message_server.dm b/code/modules/research/message_server.dm index be24897cf11..be79f1aaf4f 100644 --- a/code/modules/research/message_server.dm +++ b/code/modules/research/message_server.dm @@ -155,6 +155,28 @@ var/obj/machinery/blackbox_recorder/blackbox del(src) blackbox = src + Del() + var/turf/T = locate(1,1,2) + if(T) + blackbox = null + var/obj/machinery/blackbox_recorder/BR = new/obj/machinery/blackbox_recorder(T) + BR.msg_common = msg_common + BR.msg_science = msg_science + BR.msg_command = msg_command + BR.msg_medical = msg_medical + BR.msg_engineering = msg_engineering + BR.msg_security = msg_security + BR.msg_deathsquad = msg_deathsquad + BR.msg_syndicate = msg_syndicate + BR.msg_mining = msg_mining + BR.msg_cargo = msg_cargo + BR.feedback = feedback + BR.messages = messages + BR.messages_admin = messages_admin + if(blackbox != BR) + blackbox = BR + ..() + proc/find_feedback_datum(var/variable) for(var/datum/feedback_variable/FV in feedback) if(FV.get_variable() == variable)