Rendering continues while waiting for network; added "network" and "port" settings.

This commit is contained in:
Bob
2009-11-16 19:22:08 +13:00
parent a966b31b32
commit 4c2171997f
3 changed files with 77 additions and 22 deletions

View File

@@ -52,6 +52,8 @@ namespace OpenRa.Game
WorldRenderer.ShowUnitPaths = settings.GetValue("pathdebug", false);
Game.timestep = settings.GetValue("rate", 40);
Game.Replay = settings.GetValue("replay", "");
Game.NetworkHost = settings.GetValue( "host", "" );
Game.NetworkPort = int.Parse( settings.GetValue( "port", "0" ) );
Game.Initialize(settings.GetValue("map", "scm12ea.ini"), renderer, new int2(ClientSize),
settings.GetValue("player", 1));