(a4af8c68b) Don't try to open doors that are stuck.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:28:24 +03:00
parent b628abbf7d
commit 874bc07cfd
8 changed files with 107 additions and 303 deletions
@@ -1396,6 +1396,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; }