(7b464c5f7) Fix report intruders button flickering when it shouldn't.
This commit is contained in:
@@ -1353,7 +1353,7 @@ namespace Barotrauma
|
|||||||
bool hasLeaks = Character.Controlled.CurrentHull.Submarine != null && Character.Controlled.CurrentHull.ConnectedGaps.Any(g => !g.IsRoomToRoom && g.Open > 0.0f);
|
bool hasLeaks = Character.Controlled.CurrentHull.Submarine != null && Character.Controlled.CurrentHull.ConnectedGaps.Any(g => !g.IsRoomToRoom && g.Open > 0.0f);
|
||||||
ToggleReportButton("reportbreach", hasLeaks);
|
ToggleReportButton("reportbreach", hasLeaks);
|
||||||
|
|
||||||
bool hasIntruders = Character.CharacterList.Any(c => c.CurrentHull == Character.Controlled.CurrentHull && AIObjectiveFightIntruders.IsValidTarget(Character.Controlled, c));
|
bool hasIntruders = Character.CharacterList.Any(c => c.CurrentHull == Character.Controlled.CurrentHull && AIObjectiveFightIntruders.IsValidTarget(c, Character.Controlled));
|
||||||
ToggleReportButton("reportintruders", hasIntruders);
|
ToggleReportButton("reportintruders", hasIntruders);
|
||||||
|
|
||||||
foreach (GUIComponent reportButton in reportButtonFrame.Children)
|
foreach (GUIComponent reportButton in reportButtonFrame.Children)
|
||||||
|
|||||||
Reference in New Issue
Block a user