From a436eb27c15b8685932fad3dbcb55c38f6e98621 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 16 Jul 2018 13:50:31 +0300 Subject: [PATCH] Fixed explosion with an EMP value only damaging reactors (when they should only ignore reactors). Closes #473 --- Barotrauma/BarotraumaShared/Source/Map/Explosion.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Map/Explosion.cs b/Barotrauma/BarotraumaShared/Source/Map/Explosion.cs index 02bd404de..a11ce2b95 100644 --- a/Barotrauma/BarotraumaShared/Source/Map/Explosion.cs +++ b/Barotrauma/BarotraumaShared/Source/Map/Explosion.cs @@ -80,7 +80,7 @@ namespace Barotrauma if (distSqr > displayRangeSqr) continue; //ignore reactors (don't want to blow them up) - if (item.GetComponent() == null) continue; + if (item.GetComponent() != null) continue; float distFactor = 1.0f - (float)Math.Sqrt(distSqr) / displayRange;