(c5e44ed94) Take access into account before accepting a path. Fixes bots trying to reach places where they have no access to (#1351).
This commit is contained in:
+3
-4
@@ -51,10 +51,9 @@ namespace Barotrauma
|
||||
return otherExtinguishFire != null && otherExtinguishFire.targetHull == targetHull;
|
||||
}
|
||||
|
||||
public override bool CanBeCompleted
|
||||
{
|
||||
get { return getExtinguisherObjective == null || getExtinguisherObjective.IsCompleted() || getExtinguisherObjective.CanBeCompleted; }
|
||||
}
|
||||
public override bool CanBeCompleted =>
|
||||
(getExtinguisherObjective == null || getExtinguisherObjective.IsCompleted() || getExtinguisherObjective.CanBeCompleted) &&
|
||||
(gotoObjective == null || gotoObjective.IsCompleted() || gotoObjective.CanBeCompleted);
|
||||
|
||||
protected override void Act(float deltaTime)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user