diff --git a/code/modules/cm_marines/overwatch.dm b/code/modules/cm_marines/overwatch.dm index 637a8aee4713..c74631976738 100644 --- a/code/modules/cm_marines/overwatch.dm +++ b/code/modules/cm_marines/overwatch.dm @@ -236,8 +236,6 @@ if(!istype(marine_human.head, /obj/item/clothing/head/helmet/marine)) has_helmet = FALSE - else - var/obj/item/clothing/head/helmet/marine if(!marine_human.key || !marine_human.client) if(marine_human.stat != DEAD) diff --git a/tgui/packages/tgui/interfaces/OverwatchConsole.js b/tgui/packages/tgui/interfaces/OverwatchConsole.js index 07fc7ec741dc..7c1626991070 100644 --- a/tgui/packages/tgui/interfaces/OverwatchConsole.js +++ b/tgui/packages/tgui/interfaces/OverwatchConsole.js @@ -240,8 +240,8 @@ const RoleTable = (props, context) => { {(squad_leader && ( {squad_leader.name ? squad_leader.name : 'NONE'} - - {leaders_alive ? 'ALIVE' : 'DEAD'} + + {squad_leader.state !== 'Dead' ? 'ALIVE' : 'DEAD'} )) || ( @@ -461,8 +461,10 @@ const SquadMonitor = (props, context) => { return marine; }) .map((marine, index) => { - if (marine.role === 'Squad Leader' || marine.acting_sl) { - return; + if (squad_leader) { + if (marine.ref === squad_leader.ref) { + return; + } } if (hidden_marines.includes(marine.ref) && !showHiddenMarines) { return; @@ -474,12 +476,14 @@ const SquadMonitor = (props, context) => { return ( - + {(marine.has_helmet && ( + + )) || {marine.name} (NO HELMET)} {marine.role}