mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-07 15:55:58 +00:00
bugfix: start troops were set at zero, username was not set in singleplayer
This commit is contained in:
@@ -107,7 +107,9 @@ export class GameImpl implements Game {
|
||||
|
||||
private addHumans() {
|
||||
if (this.config().gameConfig().gameMode != GameMode.Team) {
|
||||
this._humans.forEach((p) => this.addPlayer(p, 0));
|
||||
this._humans.forEach((p) =>
|
||||
this.addPlayer(p, this.config().startManpower(p)),
|
||||
);
|
||||
return;
|
||||
}
|
||||
const playerToTeam = assignTeams(this._humans);
|
||||
|
||||
Reference in New Issue
Block a user