bugfix: start troops were set at zero, username was not set in singleplayer

This commit is contained in:
Evan
2025-04-03 20:02:22 -07:00
parent 9fa3691c5c
commit a3a05f9ed2
2 changed files with 12 additions and 2 deletions
+3 -1
View File
@@ -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);