Faction Test 100.11.0.0

This commit is contained in:
Markus Isberg
2022-12-09 20:08:17 +02:00
parent e0c3754621
commit 1650735468
24 changed files with 210 additions and 457 deletions
@@ -168,11 +168,11 @@ namespace Barotrauma
}
else if (position.X < 0.0f)
{
obstacleDiff = Vector2.UnitX;
obstacleDiff = -Vector2.UnitX;
}
else if (position.X > Level.Loaded.Size.X)
{
obstacleDiff = -Vector2.UnitX;
obstacleDiff = Vector2.UnitX;
}
else
{
@@ -183,7 +183,7 @@ namespace Barotrauma
foreach (Voronoi2.VoronoiCell cell in cells)
{
Vector2 diff = cell.Center - position;
if (diff.LengthSquared() > 5000.0f * 5000.0f) continue;
if (diff.LengthSquared() > 5000.0f * 5000.0f) { continue; }
obstacleDiff += diff;
cellCount++;
}