(d16942d30) Simplify.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:16:13 +03:00
parent bbce41fab0
commit 5b3696f7e4
10 changed files with 134 additions and 976 deletions
@@ -1228,6 +1228,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; }