(dabdac1a8) Fix bots waiting where they should not wait.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:31:31 +03:00
parent 27506eb10f
commit 4f825ce309
9 changed files with 344 additions and 103 deletions
@@ -1440,6 +1440,10 @@ namespace Barotrauma
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
if (!broken)
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
if (body == null || !body.Enabled || !inWater || ParentInventory != null || Removed) { return; }