(34738e4a9) Waypoint fixes (nodes at the hatches not connecting outside, outside nodes going through exterior wall pieces and turrets). TODO: improve the waypoint generation so this kind of manual fixes aren't needed

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:36:18 +03:00
parent a8b1da225b
commit 8d155d8bdd
18 changed files with 168 additions and 299 deletions
@@ -88,6 +88,21 @@ namespace Barotrauma
}
}
public override void Update(float deltaTime)
{
if (objectiveManager.CurrentObjective == this)
{
if (randomTimer > 0)
{
randomTimer -= deltaTime;
}
else
{
SetRandom();
}
}
}
public override bool IsCompleted() => false;
public override bool CanBeCompleted => true;