(17fdbc9de) New path is also needed if the old becomes unreachable. Ignore the new path if it's unreachable.

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:29:40 +03:00
parent 75640a321f
commit 9521f0ae2f
9 changed files with 74 additions and 103 deletions
@@ -117,7 +117,7 @@ namespace Barotrauma
// Take the sub position into account in the sim pos
if (character.Submarine == null && Target.Submarine != null)
{
currTargetSimPos += Target.Submarine.SimPosition;
//currTargetSimPos += Target.Submarine.SimPosition;
}
else if (character.Submarine != null && Target.Submarine == null)
{