(24cde6cae) Add a static sight range. Considerably increase the hull sight ranges.

This commit is contained in:
Joonas Rikkonen
2019-03-29 17:25:58 +02:00
parent 57f8fe437b
commit a64096b5aa
4 changed files with 13 additions and 7 deletions
@@ -601,8 +601,7 @@ namespace Barotrauma
{
((GUIMessageBox)GUIMessageBox.VisibleBox).Close();
}
else if ((Character.Controlled?.SelectedConstruction == null || !Character.Controlled.SelectedConstruction.ActiveHUDs.Any(ic => ic.GuiFrame != null))
&& Inventory.SelectedSlot == null && CharacterHealth.OpenHealthWindow == null)
else if ((GUI.MouseOn == null || GUI.IsMouseOn(GUI.PauseMenu)) && Inventory.SelectedSlot == null && CharacterHealth.OpenHealthWindow == null)
{
// Otherwise toggle pausing, unless another window/interface is open.
GUI.TogglePauseMenu();