Fixed explosion with an EMP value only damaging reactors (when they should only ignore reactors). Closes #473

This commit is contained in:
Joonas Rikkonen
2018-07-16 13:50:31 +03:00
parent 10ad78d607
commit a436eb27c1

View File

@@ -80,7 +80,7 @@ namespace Barotrauma
if (distSqr > displayRangeSqr) continue;
//ignore reactors (don't want to blow them up)
if (item.GetComponent<Reactor>() == null) continue;
if (item.GetComponent<Reactor>() != null) continue;
float distFactor = 1.0f - (float)Math.Sqrt(distSqr) / displayRange;