(80eb10d43) Option to automatically pause the game when the window loses focus (on by default)
This commit is contained in:
@@ -643,6 +643,13 @@ namespace Barotrauma
|
||||
paused = (DebugConsole.IsOpen || GUI.PauseMenuOpen || GUI.SettingsMenuOpen || Tutorial.ContentRunning) &&
|
||||
(NetworkMember == null || !NetworkMember.GameStarted);
|
||||
|
||||
#if !DEBUG
|
||||
if (NetworkMember == null && !WindowActive && Config.PauseOnFocusLost)
|
||||
{
|
||||
paused = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Screen.Selected.AddToGUIUpdateList();
|
||||
|
||||
if (Client != null)
|
||||
|
||||
Reference in New Issue
Block a user