(d7b8238d6) Don't show reports from breaches that are room to room (the bots should still target them).

This commit is contained in:
Joonas Rikkonen
2019-05-23 15:18:50 +03:00
parent feb32943c7
commit a95f1b7186

View File

@@ -336,7 +336,7 @@ namespace Barotrauma
if (AIObjectiveFixLeaks.IsValidTarget(gap, Character))
{
AddTargets<AIObjectiveFixLeaks, Gap>(Character, gap);
if (newOrder == null)
if (newOrder == null && !gap.IsRoomToRoom)
{
var orderPrefab = Order.PrefabList.Find(o => o.AITag == "reportbreach");
newOrder = new Order(orderPrefab, hull, null, orderGiver: Character);