Fixed bug where bots weren't given proper client index
This commit is contained in:
committed by
Chris Forbes
parent
3b94728869
commit
95b908b234
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user