From 8d5e5a8a15e2a75e52d61be880382822ea020f3d Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 13 Aug 2018 17:14:49 +0300 Subject: [PATCH] Fixed characters being able to aim with items that have no aimPos configured (causing them to hold two-handed items like shells an crates in one hand when holding the aim button). Closes #613 --- .../Source/Items/Components/Holdable/Holdable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs index 5a8e33867..e230315e1 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs @@ -358,7 +358,7 @@ namespace Barotrauma.Items.Components if (picker.HasSelectedItem(item)) { - picker.AnimController.HoldItem(deltaTime, item, handlePos, holdPos, aimPos, picker.IsKeyDown(InputType.Aim), holdAngle); + picker.AnimController.HoldItem(deltaTime, item, handlePos, holdPos, aimPos, picker.IsKeyDown(InputType.Aim) && aimPos != Vector2.Zero, holdAngle); } else {