From 105461beb368c71fc00a93d558f979666b2e78f9 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 29 Aug 2018 16:45:35 +0300 Subject: [PATCH] Fixed LightComponents staying active on broken items. Closes #759 --- .../Source/Items/Components/Signal/LightComponent.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/LightComponent.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/LightComponent.cs index 2a7081e61..cf9c482a5 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/LightComponent.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Signal/LightComponent.cs @@ -192,8 +192,13 @@ namespace Barotrauma.Items.Components voltage = 0.0f; } - + #if CLIENT + public override void UpdateBroken(float deltaTime, Camera cam) + { + light.Color = Color.Transparent; + } + protected override void RemoveComponentSpecific() { base.RemoveComponentSpecific();