From 7fb46bb2b64b6661cebd7b389c4c41c2274e3668 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 2 Jun 2011 17:24:07 +1200 Subject: [PATCH] Work around CreateLocalServer miscompile --- OpenRA.Game/Game.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index efd520a2de..a01943d2e7 100755 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -375,10 +375,13 @@ namespace OpenRA var settings = new ServerSettings() { Name = "Skirmish Game", - AdvertiseOnline = false, Map = map }; - + + // Work around a miscompile in mono 2.6.7: + // booleans that default to true cannot be set false by an initializer + settings.AdvertiseOnline = false; + server = new Server.Server(new IPEndPoint(IPAddress.Loopback, 0), Game.Settings.Game.Mods, settings,