From 2cb4de7dc56700fd898bda32efbf3c69151768a5 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 23 Apr 2019 15:36:50 +0300 Subject: [PATCH] (12e5b576f) Added a warning when switching from the sub editor to gamescreen with console commands --- Barotrauma/BarotraumaClient/Source/DebugConsole.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs index 9fed2075c..1ee8fba4d 100644 --- a/Barotrauma/BarotraumaClient/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaClient/Source/DebugConsole.cs @@ -361,6 +361,10 @@ namespace Barotrauma commands.Add(new Command("gamescreen|game", "gamescreen/game: Go to the \"in-game\" view.", (string[] args) => { + if (Screen.Selected == GameMain.SubEditorScreen) + { + NewMessage("WARNING: Switching directly from the submarine editor to the game view may cause bugs and crashes. Use with caution.", Color.Orange); + } GameMain.GameScreen.Select(); }));