Fixed ragdoll dropping away from the collider if it's freezed while swimming (e.g. if a client disconnects when in water)

This commit is contained in:
Joonas Rikkonen
2018-07-23 17:44:32 +03:00
parent ee13ea3972
commit a373c589d1
@@ -47,6 +47,7 @@ namespace Barotrauma
frozen = value;
Collider.PhysEnabled = !frozen;
if (frozen && MainLimb != null) MainLimb.pullJoint.WorldAnchorB = MainLimb.SimPosition;
}
}