IndoorsSteering works outside now

This commit is contained in:
Regalis
2016-01-06 22:50:55 +02:00
parent 48eabedb77
commit e102154f5f
6 changed files with 33 additions and 19 deletions
@@ -76,7 +76,11 @@ namespace Barotrauma
//if character is outside the sub and target isn't, transform the position
if (character.Submarine == null && target.Submarine != null)
{
currTargetPos += target.Submarine.SimPosition;
//currTargetPos += target.Submarine.SimPosition;
}
else if (target.Submarine==null)
{
currTargetPos -= Submarine.Loaded.SimPosition;
}
}