Disabled debug logging of the loading coroutine when verbose logging isn't enabled

This commit is contained in:
Joonas Rikkonen
2017-07-23 20:11:34 +03:00
parent bce3d492ba
commit bf7677154b
3 changed files with 20 additions and 5 deletions
@@ -199,7 +199,10 @@ namespace Barotrauma
private IEnumerable<object> Load()
{
DebugConsole.NewMessage("LOADING COROUTINE", Color.Lime);
if (GameSettings.VerboseLogging)
{
DebugConsole.NewMessage("LOADING COROUTINE", Color.Lime);
}
GUI.GraphicsDevice = base.GraphicsDevice;
GUI.Init(Content);
@@ -283,7 +286,10 @@ namespace Barotrauma
TitleScreen.LoadState = 100.0f;
hasLoaded = true;
DebugConsole.NewMessage("LOADING COROUTINE FINISHED", Color.Lime);
if (GameSettings.VerboseLogging)
{
DebugConsole.NewMessage("LOADING COROUTINE FINISHED", Color.Lime);
}
yield return CoroutineStatus.Success;
}