mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:50:43 +00:00
bugfix: make sure to add teams before assigning players, this caused all team games to have only two teams
This commit is contained in:
@@ -85,7 +85,6 @@ export class GameImpl implements Game {
|
||||
nationMap: NationMap,
|
||||
private _config: Config,
|
||||
) {
|
||||
this.addHumans();
|
||||
this._terraNullius = new TerraNulliusImpl();
|
||||
this._width = _map.width();
|
||||
this._height = _map.height();
|
||||
@@ -112,6 +111,7 @@ export class GameImpl implements Game {
|
||||
if (numPlayerTeams >= 8)
|
||||
throw new Error(`Too many teams: ${numPlayerTeams}`);
|
||||
}
|
||||
this.addHumans();
|
||||
}
|
||||
|
||||
private addHumans() {
|
||||
|
||||
Reference in New Issue
Block a user