From b9287beed2120bff56cb5a4a808141d08b5aac15 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Wed, 7 Mar 2018 11:33:06 +0200 Subject: [PATCH] Characters carry two-handed throwables in both hands. (See #303) --- .../Source/Items/Components/Holdable/Throwable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Throwable.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Throwable.cs index acce40b2f..34c909508 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Throwable.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Throwable.cs @@ -77,13 +77,13 @@ namespace Barotrauma.Items.Components { if (picker.IsKeyDown(InputType.Aim)) { - throwPos = (float)System.Math.Min(throwPos+deltaTime*5.0f, MathHelper.Pi*0.7f); + throwPos = (float)System.Math.Min(throwPos + deltaTime * 5.0f, MathHelper.Pi * 0.7f); ac.HoldItem(deltaTime, item, handlePos, new Vector2(0.6f, -0.0f), new Vector2(-0.3f, 0.2f), false, throwPos); } else { - ac.HoldItem(deltaTime, item, handlePos, new Vector2(throwPos, 0.0f), aimPos, false, 0.0f); + ac.HoldItem(deltaTime, item, handlePos, holdPos, aimPos, false, holdAngle); } } else