From 431e5bb9b8da77294189b9bcf7184afa5d0b9066 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 25 Jul 2017 21:53:57 +0300 Subject: [PATCH] Attachable items are always attached by default when adding them in the sub editor --- .../Source/Items/Components/Holdable/Holdable.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs index cbffca55c..654d48894 100644 --- a/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs +++ b/Barotrauma/BarotraumaShared/Source/Items/Components/Holdable/Holdable.cs @@ -99,8 +99,7 @@ namespace Barotrauma.Items.Components prevMsg = Msg; prevPickKey = PickKey; prevRequiredItems = new List(requiredItems); - - + if (item.Submarine != null) { if (item.Submarine.Loading) @@ -110,7 +109,7 @@ namespace Barotrauma.Items.Components } else //the submarine is not being loaded, which means we're either in the sub editor or the item has been spawned mid-round { - if (Screen.Selected == GameMain.EditMapScreen && attachedByDefault) + if (Screen.Selected == GameMain.EditMapScreen) { //in the sub editor, attach AttachToWall();