(e83e351e8) Fixed health interface now focusing to the most damaged limb when closing and reopening the interface
This commit is contained in:
@@ -115,6 +115,12 @@ namespace Barotrauma
|
|||||||
|
|
||||||
var prevOpenHealthWindow = openHealthWindow;
|
var prevOpenHealthWindow = openHealthWindow;
|
||||||
|
|
||||||
|
if (prevOpenHealthWindow != null)
|
||||||
|
{
|
||||||
|
prevOpenHealthWindow.selectedLimbIndex = -1;
|
||||||
|
prevOpenHealthWindow.highlightedLimbIndex = -1;
|
||||||
|
}
|
||||||
|
|
||||||
openHealthWindow = value;
|
openHealthWindow = value;
|
||||||
toggledThisFrame = true;
|
toggledThisFrame = true;
|
||||||
if (Character.Controlled == null) { return; }
|
if (Character.Controlled == null) { return; }
|
||||||
|
|||||||
Reference in New Issue
Block a user