From 6f75a928ea85cd114accae42099e942a86bba2ce Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 19 Jun 2017 19:51:22 +0300 Subject: [PATCH] Fixed a compilation error when the DEBUG symbol is defined --- BarotraumaShared/Source/Screens/GameScreen.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BarotraumaShared/Source/Screens/GameScreen.cs b/BarotraumaShared/Source/Screens/GameScreen.cs index ec426a108..cb66eb057 100644 --- a/BarotraumaShared/Source/Screens/GameScreen.cs +++ b/BarotraumaShared/Source/Screens/GameScreen.cs @@ -1,5 +1,7 @@ -using System; -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; +#if CLIENT +using Microsoft.Xna.Framework.Input; +#endif namespace Barotrauma { @@ -47,7 +49,7 @@ namespace Barotrauma public override void Update(double deltaTime) { -#if DEBUG +#if DEBUG && CLIENT if (GameMain.GameSession != null && GameMain.GameSession.Level != null && GameMain.GameSession.Submarine != null && !DebugConsole.IsOpen) {