(e83e351e8) Fixed health interface now focusing to the most damaged limb when closing and reopening the interface

This commit is contained in:
Joonas Rikkonen
2019-06-04 16:51:49 +03:00
parent 0f38f154d9
commit e633ecca69

View File

@@ -115,6 +115,12 @@ namespace Barotrauma
var prevOpenHealthWindow = openHealthWindow;
if (prevOpenHealthWindow != null)
{
prevOpenHealthWindow.selectedLimbIndex = -1;
prevOpenHealthWindow.highlightedLimbIndex = -1;
}
openHealthWindow = value;
toggledThisFrame = true;
if (Character.Controlled == null) { return; }