Fixed bug where bots weren't given proper client index

This commit is contained in:
Curtis Shmyr
2012-02-01 20:28:26 -07:00
committed by Chris Forbes
parent 3b94728869
commit 95b908b234

View File

@@ -121,16 +121,15 @@ namespace OpenRA.Server
catch { } catch { }
} ) { IsBackground = true }.Start(); } ) { IsBackground = true }.Start();
} }
int nextPlayerIndex;
/* lobby rework todo: /* lobby rework todo:
* - "teams together" option for team games -- will eliminate most need * - "teams together" option for team games -- will eliminate most need
* for manual spawnpoint choosing. * for manual spawnpoint choosing.
* - 256 max players is a dirty hack
*/ */
int nextPlayerIndex = 0;
public int ChooseFreePlayerIndex() public int ChooseFreePlayerIndex()
{ {
nextPlayerIndex++; return nextPlayerIndex++;
return nextPlayerIndex;
} }
void AcceptConnection() void AcceptConnection()