(20fcd3853) Optimizations.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:47:52 +03:00
parent 068089ae5c
commit 480bba392c
15 changed files with 357 additions and 156 deletions
@@ -1672,6 +1672,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; }