Move game option value declarations to dlg_create_game.

This commit is contained in:
Lukas Brübach 2024-12-19 12:38:21 +01:00
parent 3b2421f695
commit 59b6fef512
10 changed files with 52 additions and 16 deletions

View file

@ -821,7 +821,7 @@ Server_ProtocolHandler::cmdCreateGame(const Command_CreateGame &cmd, Server_Room
Server_Game *game = new Server_Game(
copyUserInfo(false), gameId, description, QString::fromStdString(cmd.password()), cmd.max_players(), gameTypes,
cmd.only_buddies(), onlyRegisteredUsers, cmd.spectators_allowed(), cmd.spectators_need_password(),
cmd.spectators_can_talk(), cmd.spectators_see_everything(), room);
cmd.spectators_can_talk(), cmd.spectators_see_everything(), cmd.starting_life_total(), room);
game->addPlayer(this, rc, asSpectator, asJudge, false);
room->addGame(game);