HUDProgressBars are drawn over the LOS effect, progressbar not displayed when attempting to weld/cut platforms

This commit is contained in:
Regalis
2016-09-20 19:36:58 +03:00
parent 5918e845ac
commit 96a61ab2ea
4 changed files with 23 additions and 22 deletions

View File

@@ -178,6 +178,7 @@ namespace Barotrauma.Items.Components
if ((targetStructure = (targetBody.UserData as Structure)) != null)
{
if (!fixableEntities.Contains(targetStructure.Name)) return;
if (targetStructure.IsPlatform) return;
int sectionIndex = targetStructure.FindSectionIndex(ConvertUnits.ToDisplayUnits(pickedPosition));
if (sectionIndex < 0) return;