(359537369) Don't do visibility checks in ChatMessage.GetGarbleAmount if the listener and the speaker are in the same hull

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:41:33 +03:00
parent 1b4957d2e6
commit 464aa46980
12 changed files with 148 additions and 370 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;