Added Dedicated to GlobalSettings
This commit is contained in:
@@ -198,6 +198,7 @@ namespace OpenRA.Network
|
|||||||
public bool AllowVersionMismatch;
|
public bool AllowVersionMismatch;
|
||||||
public string GameUid;
|
public string GameUid;
|
||||||
public bool EnableSingleplayer;
|
public bool EnableSingleplayer;
|
||||||
|
public bool Dedicated;
|
||||||
|
|
||||||
[FieldLoader.Ignore]
|
[FieldLoader.Ignore]
|
||||||
public Dictionary<string, LobbyOptionState> LobbyOptions = new Dictionary<string, LobbyOptionState>();
|
public Dictionary<string, LobbyOptionState> LobbyOptions = new Dictionary<string, LobbyOptionState>();
|
||||||
|
|||||||
@@ -150,7 +150,8 @@ namespace OpenRA.Server
|
|||||||
Map = settings.Map,
|
Map = settings.Map,
|
||||||
ServerName = settings.Name,
|
ServerName = settings.Name,
|
||||||
EnableSingleplayer = settings.EnableSingleplayer || !dedicated,
|
EnableSingleplayer = settings.EnableSingleplayer || !dedicated,
|
||||||
GameUid = Guid.NewGuid().ToString()
|
GameUid = Guid.NewGuid().ToString(),
|
||||||
|
Dedicated = dedicated
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user