(f16622a9d) Merge branch 'dev' of https://github.com/Regalis11/Barotrauma-development into dev
This commit is contained in:
@@ -601,7 +601,8 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
((GUIMessageBox)GUIMessageBox.VisibleBox).Close();
|
((GUIMessageBox)GUIMessageBox.VisibleBox).Close();
|
||||||
}
|
}
|
||||||
else if ((GUI.MouseOn == null || GUI.IsMouseOn(GUI.PauseMenu)) && Inventory.SelectedSlot == null && CharacterHealth.OpenHealthWindow == null)
|
else if ((Character.Controlled?.SelectedConstruction == null || !Character.Controlled.SelectedConstruction.ActiveHUDs.Any(ic => ic.GuiFrame != null))
|
||||||
|
&& Inventory.SelectedSlot == null && CharacterHealth.OpenHealthWindow == null)
|
||||||
{
|
{
|
||||||
// Otherwise toggle pausing, unless another window/interface is open.
|
// Otherwise toggle pausing, unless another window/interface is open.
|
||||||
GUI.TogglePauseMenu();
|
GUI.TogglePauseMenu();
|
||||||
|
|||||||
+2
-1
@@ -657,9 +657,10 @@ namespace Barotrauma.Tutorials
|
|||||||
{
|
{
|
||||||
foreach (Gap gap in Gap.GapList)
|
foreach (Gap gap in Gap.GapList)
|
||||||
{
|
{
|
||||||
if (gap.ConnectedWall == null) continue;
|
if (gap.ConnectedWall == null || gap.IsRoomToRoom) continue;
|
||||||
if (gap.ConnectedDoor != null || gap.Open <= 0.0f) continue;
|
if (gap.ConnectedDoor != null || gap.Open <= 0.0f) continue;
|
||||||
if (gap.Submarine == null) continue;
|
if (gap.Submarine == null) continue;
|
||||||
|
if (gap.Submarine.IsOutpost) continue;
|
||||||
if (gap.Submarine != Submarine.MainSub) continue;
|
if (gap.Submarine != Submarine.MainSub) continue;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ namespace Barotrauma
|
|||||||
Gap.UpdateHulls();
|
Gap.UpdateHulls();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OxygenPercentage = prevOxygenPercentage;
|
||||||
surface = drawSurface = rect.Y - rect.Height + WaterVolume / rect.Width;
|
surface = drawSurface = rect.Y - rect.Height + WaterVolume / rect.Width;
|
||||||
Pressure = surface;
|
Pressure = surface;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user