Moving the sub using IJKL in debug builds is disabled when writing into a textbox.
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
#if DEBUG && CLIENT
|
#if DEBUG && CLIENT
|
||||||
if (GameMain.GameSession != null && GameMain.GameSession.Level != null && GameMain.GameSession.Submarine != null &&
|
if (GameMain.GameSession != null && GameMain.GameSession.Level != null && GameMain.GameSession.Submarine != null &&
|
||||||
!DebugConsole.IsOpen)
|
!DebugConsole.IsOpen && GUIComponent.KeyboardDispatcher.Subscriber == null)
|
||||||
{
|
{
|
||||||
var closestSub = Submarine.FindClosest(cam.WorldViewCenter);
|
var closestSub = Submarine.FindClosest(cam.WorldViewCenter);
|
||||||
if (closestSub == null) closestSub = GameMain.GameSession.Submarine;
|
if (closestSub == null) closestSub = GameMain.GameSession.Submarine;
|
||||||
|
|||||||
Reference in New Issue
Block a user