Fixed items held in left hand taking the sprite depth from the left arm instead of the hand

This commit is contained in:
Joonas Rikkonen
2018-03-02 10:38:10 +02:00
parent 10189254b5
commit cc41f0cd9e
@@ -108,7 +108,7 @@ namespace Barotrauma
} }
else if (holdable.Picker.SelectedItems[1] == this) else if (holdable.Picker.SelectedItems[1] == this)
{ {
Limb holdLimb = holdable.Picker.AnimController.GetLimb(LimbType.LeftArm); Limb holdLimb = holdable.Picker.AnimController.GetLimb(LimbType.LeftHand);
depth = holdLimb.sprite.Depth - 0.000001f; depth = holdLimb.sprite.Depth - 0.000001f;
foreach (WearableSprite wearableSprite in holdLimb.WearingItems) foreach (WearableSprite wearableSprite in holdLimb.WearingItems)
{ {