Fixed a compilation error when the DEBUG symbol is defined

This commit is contained in:
Joonas Rikkonen
2017-06-19 19:51:22 +03:00
parent 16bc68d768
commit 6f75a928ea

View File

@@ -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)
{