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 { }
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user