(ca59bc50f) Need to offset the sim position when not using the insidesteering.

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:33:15 +03:00
parent 900ebc8993
commit ea6df7ce0d
2 changed files with 50 additions and 2 deletions
@@ -115,9 +115,9 @@ namespace Barotrauma
Vector2 currTargetSimPos = Vector2.Zero;
currTargetSimPos = Target.SimPosition;
// Take the sub position into account in the sim pos
if (character.Submarine == null && Target.Submarine != null)
if (SteeringManager != PathSteering && character.Submarine == null && Target.Submarine != null)
{
//currTargetSimPos += Target.Submarine.SimPosition;
currTargetSimPos += Target.Submarine.SimPosition;
}
else if (character.Submarine != null && Target.Submarine == null)
{