(b63c9bf0c) Fixed OpenFileDialog not closing on Linux

This commit is contained in:
Joonas Rikkonen
2019-05-23 17:04:30 +03:00
parent 834ee2947b
commit 304db988b1
5 changed files with 80 additions and 4 deletions
@@ -122,8 +122,9 @@ namespace Barotrauma
goToObjective = null;
}
TryAddSubObjective(ref goToObjective,
constructor: () => new AIObjectiveGoTo(currentSafeHull, character, objectiveManager, getDivingGearIfNeeded: true)
constructor: () => new AIObjectiveGoTo(currentSafeHull, character, objectiveManager, getDivingGearIfNeeded: false)
{
// If we need diving gear, we should already have it, if possible.
AllowGoingOutside = HumanAIController.HasDivingSuit(character)
},
onAbandon: () => unreachable.Add(goToObjective.Target as Hull));