(c21615b5b) More optimizations.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:48:09 +03:00
parent 480bba392c
commit ed49bea3ef
13 changed files with 176 additions and 254 deletions
@@ -1676,6 +1676,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; }