From 0f518d7a87e23b3e3a2560f257b3ca98e10a7bac Mon Sep 17 00:00:00 2001 From: Ron Date: Fri, 14 Jul 2017 12:49:51 -0400 Subject: [PATCH] Crew monitoring program fix (#3026) Fixes an issue where the crew monitoring map would say it was unable to connect to TCOMs when there was no one with suit sensors on but it could still connect to TCOMs. --- code/modules/nano/modules/crew_monitor.dm | 2 ++ nano/templates/crew_monitor.tmpl | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/modules/nano/modules/crew_monitor.dm b/code/modules/nano/modules/crew_monitor.dm index b000b941404..8fff2db3739 100644 --- a/code/modules/nano/modules/crew_monitor.dm +++ b/code/modules/nano/modules/crew_monitor.dm @@ -18,9 +18,11 @@ // This checks if TCOMS is online using the test proc. If it isn't, the suit sensor data isn't loaded. var/datum/signal/signal signal = telecomms_process_active() + data["signal"] = 0 if(signal.data["done"] == 1) data["isAI"] = isAI(user) data["crewmembers"] = list() + data["signal"] = 1 for(var/z_level in map_levels) data["crewmembers"] += crew_repository.health_data(z_level) diff --git a/nano/templates/crew_monitor.tmpl b/nano/templates/crew_monitor.tmpl index 4bbf18c0656..ac53dc6566d 100644 --- a/nano/templates/crew_monitor.tmpl +++ b/nano/templates/crew_monitor.tmpl @@ -27,6 +27,10 @@ Used In File(s): \code\game\machinery\computer\crew.dm {{:value.name}} ({{:value.assignment}}){{:value.dead ? "Deceased" : "Living"}} ({{:value.oxy}}/{{:value.tox}}/{{:value.fire}}/{{:value.brute}}){{:value.area}}({{:value.x}}, {{:value.y}}, {{:value.z}}){{if data.isAI}}{{:helper.link('Track', null, {'track' : value.ref})}}{{/if}} {{/if}} {{empty}} - " Unable to establish a connection to telecommunications!" + {{if data.signal == 0}} + Unable to estabalish a connection to telecommunications! + {{else}} + No suit sensors detected! + {{/if}} {{/for}} \ No newline at end of file