(250dbe18e) Don't prevent item UI panels from overlapping with the chatbox or crew list areas when in the sub editor

This commit is contained in:
Joonas Rikkonen
2019-04-05 16:14:57 +03:00
parent f00b74926b
commit 6c2c522f30
2 changed files with 8 additions and 11 deletions
@@ -612,7 +612,7 @@ namespace Barotrauma
}
List<Rectangle> disallowedAreas = new List<Rectangle>();
if (GameMain.GameSession?.CrewManager != null)
if (GameMain.GameSession?.CrewManager != null && Screen.Selected == GameMain.GameScreen)
{
disallowedAreas.Add(GameMain.GameSession.CrewManager.GetCharacterListArea());
disallowedAreas.Add(new Rectangle(