From fdd3db82e68c0e3ee14e3bfe85eaf67af3656bdd Mon Sep 17 00:00:00 2001 From: Alex Noir Date: Tue, 5 Dec 2017 18:22:03 +0300 Subject: [PATCH] oops fixed logic --- .../BarotraumaShared/Source/Networking/NetworkMember.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs b/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs index 7b9afb6a4..7a59f1f05 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/NetworkMember.cs @@ -224,7 +224,7 @@ namespace Barotrauma.Networking //tab doesn't autoselect the chatbox when debug console is open, //because tab is used for autocompleting console commands if ((PlayerInput.KeyHit(InputType.Chat) || PlayerInput.KeyHit(InputType.RadioChat)) && - (Screen.Selected == GameMain.GameScreen && msgBox.Visible || (!DebugConsole.IsOpen && GUIComponent.KeyboardDispatcher.Subscriber == null))) + (!DebugConsole.IsOpen && GUIComponent.KeyboardDispatcher.Subscriber == null) && (Screen.Selected != GameMain.GameScreen || msgBox.Visible)) { if (msgBox.Selected) { @@ -234,7 +234,7 @@ namespace Barotrauma.Networking else { msgBox.Select(); - if (PlayerInput.KeyHit(InputType.RadioChat)) + if (Screen.Selected == GameMain.GameScreen && PlayerInput.KeyHit(InputType.RadioChat)) { msgBox.Text = "r; "; msgBox.OnTextChanged?.Invoke(msgBox, msgBox.Text);