(9db806bbf) Don't report on targets that have been reported.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:49:48 +03:00
parent b105ef71eb
commit 5d7cc6599c
12 changed files with 204 additions and 248 deletions
@@ -1700,6 +1700,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; }