(a1fe45652) Add some margin.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:18:01 +03:00
parent cbfef49e9d
commit f61bff8970
10 changed files with 106 additions and 302 deletions
@@ -1252,6 +1252,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; }