(f900dfb1c) Added missing lines to EnglishVanilla

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:43:19 +03:00
parent 78b67de866
commit dc1dd454fd
3 changed files with 63 additions and 79 deletions
@@ -192,13 +192,6 @@ namespace Barotrauma
if (dist > maxDistance) return Vector2.Zero;
if (!avoidObstaclePos.HasValue) return Vector2.Zero;
Vector2 diff = avoidObstaclePos.Value - host.SimPosition;
float dist = diff.Length();
if (dist > maxDistance) return Vector2.Zero;
return -diff * (1.0f - dist / maxDistance) * weight;
}