(ee2d498e3) Fix bots ignoring doors when shooting.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:24:28 +03:00
parent 4c53a56b20
commit e284e1039a
9 changed files with 136 additions and 217 deletions
@@ -1340,6 +1340,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; }