From a8484e10ff9c1661971d0080b99ca646c5947f33 Mon Sep 17 00:00:00 2001 From: Regalis Date: Sun, 23 Oct 2016 19:01:46 +0300 Subject: [PATCH] Unlit LOS effect, IJKL doesn't move the sub when the debug console is open --- Subsurface/Source/Screens/GameScreen.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Subsurface/Source/Screens/GameScreen.cs b/Subsurface/Source/Screens/GameScreen.cs index d7401f0b3..f2b951eaa 100644 --- a/Subsurface/Source/Screens/GameScreen.cs +++ b/Subsurface/Source/Screens/GameScreen.cs @@ -95,7 +95,8 @@ namespace Barotrauma { #if DEBUG - 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) { var closestSub = Submarine.GetClosest(cam.WorldViewCenter); if (closestSub == null) closestSub = GameMain.GameSession.Submarine; @@ -336,7 +337,7 @@ namespace Barotrauma Submarine.DrawDamageable(spriteBatch, null); spriteBatch.End(); - GameMain.LightManager.DrawLightMap(spriteBatch, lightBlur.Effect); + //GameMain.LightManager.DrawLightMap(spriteBatch, lightBlur.Effect); GameMain.LightManager.DrawLOS(spriteBatch, lightBlur.Effect, true); }