Introduce ServerType.Skirmish.
This commit is contained in:
@@ -102,7 +102,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
|
||||
void INotifyServerStart.ServerStarted(S server)
|
||||
{
|
||||
if (server.Type != ServerType.Local && LanGameBeacon != null)
|
||||
if (server.IsMultiplayer && LanGameBeacon != null)
|
||||
LanGameBeacon.Start();
|
||||
}
|
||||
|
||||
|
||||
@@ -459,7 +459,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
Game.Settings.Server.Map = map;
|
||||
Game.Settings.Save();
|
||||
|
||||
ConnectionLogic.Connect(Game.CreateLocalServer(map),
|
||||
ConnectionLogic.Connect(Game.CreateLocalServer(map, isSkirmish: true),
|
||||
"",
|
||||
OpenSkirmishLobbyPanel,
|
||||
() => { Game.CloseServer(); SwitchMenu(MenuType.Main); });
|
||||
|
||||
Reference in New Issue
Block a user