(fc5e081d3) Fixed: Hull names not saving properly in submarineditor

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:31:32 +03:00
parent 50dc08fb56
commit fc22eb5088
24 changed files with 350 additions and 782 deletions
@@ -100,7 +100,8 @@ namespace Barotrauma
objectiveManager.GetObjective<AIObjectiveIdle>()?.Wander(deltaTime);
return;
}
if (character.CanInteractWith(targetItem, out _, checkLinked: false))
if (moveToTarget.CurrentHull == character.CurrentHull &&
Vector2.DistanceSquared(character.Position, moveToTarget.Position) < MathUtils.Pow(targetItem.InteractDistance, 2))
{
if (IsTakenBySomeone(targetItem))
{