(46356bbf0) Fix bots reporting incorrectly that there is no targets.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:20:20 +03:00
parent cb0a1dc681
commit aac2aaae8b
13 changed files with 159 additions and 305 deletions
@@ -224,6 +224,10 @@ namespace Barotrauma
// Recreate objectives, because some of them may be removed, if impossible to complete (e.g. due to path finding)
CreateAutonomousObjectives();
}
else
{
CurrentOrder.Reset();
}
}
public AIObjective CreateObjective(Order order, string option, Character orderGiver, float priorityModifier = 1)