(238f46c9e) Fix bots not walking when close enough to the target (only affects go to objectives that are main objectives -> follow order).

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:43:23 +03:00
parent 3c17c976d7
commit 290e86977d
12 changed files with 475 additions and 104 deletions
@@ -74,21 +74,6 @@ 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;