Added Dedicated to GlobalSettings

This commit is contained in:
teinarss
2018-07-01 19:54:14 +02:00
committed by Paul Chote
parent a156a31cf5
commit 0c1b11ed4f
2 changed files with 3 additions and 1 deletions

View File

@@ -198,6 +198,7 @@ namespace OpenRA.Network
public bool AllowVersionMismatch;
public string GameUid;
public bool EnableSingleplayer;
public bool Dedicated;
[FieldLoader.Ignore]
public Dictionary<string, LobbyOptionState> LobbyOptions = new Dictionary<string, LobbyOptionState>();

View File

@@ -150,7 +150,8 @@ namespace OpenRA.Server
Map = settings.Map,
ServerName = settings.Name,
EnableSingleplayer = settings.EnableSingleplayer || !dedicated,
GameUid = Guid.NewGuid().ToString()
GameUid = Guid.NewGuid().ToString(),
Dedicated = dedicated
}
};