smite some compile errors
This commit is contained in:
@@ -174,10 +174,9 @@ namespace OpenRA
|
||||
/* hack: make some slots. */
|
||||
if (!Players.Any(p => p.Value.Playable))
|
||||
{
|
||||
int index = 0;
|
||||
foreach (var wp in Waypoints)
|
||||
for (int index = 0; index < Waypoints.Count; index++)
|
||||
{
|
||||
var p = new PlayerReference("Multi{0}".F(index++), "Random", false, false) { Playable = true };
|
||||
var p = new PlayerReference("Multi{0}".F(index), "Random", false, false) { Playable = true };
|
||||
Players.Add(p.Name, p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ namespace OpenRA.Server
|
||||
static Session lobbyInfo;
|
||||
static bool GameStarted = false;
|
||||
static string Name;
|
||||
static WebClient wc = new WebClient();
|
||||
static int ExternalPort;
|
||||
static int randomSeed;
|
||||
|
||||
@@ -584,7 +583,7 @@ namespace OpenRA.Server
|
||||
|
||||
using (var wc = new WebClient())
|
||||
{
|
||||
var result = wc.DownloadData(
|
||||
wc.DownloadData(
|
||||
masterServerUrl + url.F(
|
||||
ExternalPort, Uri.EscapeUriString(Name),
|
||||
GameStarted ? 2 : 1, // todo: post-game states, etc.
|
||||
|
||||
Reference in New Issue
Block a user