From 561a1a8995085a91a0d8ef375c586bb908713fff Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 15 Apr 2019 11:56:18 +0300 Subject: [PATCH] (0880ae29f) Don't add ai targets to alien ruin walls. --- Barotrauma/BarotraumaShared/Source/Map/Structure.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Map/Structure.cs b/Barotrauma/BarotraumaShared/Source/Map/Structure.cs index b4829678a..3f0889562 100644 --- a/Barotrauma/BarotraumaShared/Source/Map/Structure.cs +++ b/Barotrauma/BarotraumaShared/Source/Map/Structure.cs @@ -313,8 +313,8 @@ namespace Barotrauma } } - // Only add ai targets automatically to walls - if (aiTarget == null && HasBody && Tags.Contains("wall")) + // Only add ai targets automatically to submarine/outpost walls + if (aiTarget == null && HasBody && Tags.Contains("wall") && submarine != null) { aiTarget = new AITarget(this); }