Fixed handcuffed players being able to perform CPR and grab/drag bodies. Closes #608

This commit is contained in:
Joonas Rikkonen
2018-08-08 12:01:20 +03:00
parent 67527df8ab
commit 1a5a76746b
@@ -1619,8 +1619,6 @@ namespace Barotrauma
if (health <= minHealth) Kill(CauseOfDeath.Bloodloss); if (health <= minHealth) Kill(CauseOfDeath.Bloodloss);
if (!IsDead) LockHands = false;
UpdateSightRange(); UpdateSightRange();
if (aiTarget != null) aiTarget.SoundRange = 0.0f; if (aiTarget != null) aiTarget.SoundRange = 0.0f;
@@ -1652,6 +1650,8 @@ namespace Barotrauma
{ {
selectedConstruction = null; selectedConstruction = null;
} }
if (!IsDead) LockHands = false;
} }
partial void UpdateControlled(float deltaTime, Camera cam); partial void UpdateControlled(float deltaTime, Camera cam);