automatically join the server

This commit is contained in:
Chris Forbes
2010-03-09 20:56:59 +13:00
parent fec037414d
commit a28010917e

View File

@@ -33,6 +33,7 @@ using OpenRA.Support;
using OpenRA.Traits;
using Timer = OpenRA.Support.Timer;
using OpenRA.Server;
using System.Net;
namespace OpenRA
{
@@ -153,6 +154,7 @@ namespace OpenRA
{
// todo: LobbyInfo is the wrong place for this.
InprocServer.Start(Game.LobbyInfo.GlobalSettings.Mods);
JoinServer(IPAddress.Loopback.ToString(), 1234);
}
internal static void CloseServer()