From 95b908b23479237e939e8b4261b1f423bece2c3c Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Wed, 1 Feb 2012 20:28:26 -0700 Subject: [PATCH] Fixed bug where bots weren't given proper client index --- OpenRA.Game/Server/Server.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index 04a8f145b5..fbae8e2cbc 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -121,16 +121,15 @@ namespace OpenRA.Server catch { } } ) { IsBackground = true }.Start(); } - int nextPlayerIndex; + /* lobby rework todo: * - "teams together" option for team games -- will eliminate most need * for manual spawnpoint choosing. - * - 256 max players is a dirty hack */ + int nextPlayerIndex = 0; public int ChooseFreePlayerIndex() { - nextPlayerIndex++; - return nextPlayerIndex; + return nextPlayerIndex++; } void AcceptConnection()