HUDProgressBars move with the subs

This commit is contained in:
Regalis
2016-09-26 16:26:52 +03:00
parent ccb50ca28f
commit e91e0a4f9c
2 changed files with 33 additions and 9 deletions
+1 -1
View File
@@ -1355,7 +1355,7 @@ namespace Barotrauma
HUDProgressBar progressBar = null;
if (!hudProgressBars.TryGetValue(linkedObject, out progressBar))
{
progressBar = new HUDProgressBar(worldPosition, emptyColor, fullColor);
progressBar = new HUDProgressBar(worldPosition, Submarine, emptyColor, fullColor);
hudProgressBars.Add(linkedObject, progressBar);
}