Removed game_config parameter from start_local_game_commandline
This commit is contained in:
parent
3f7152f87a
commit
99188ee077
3 changed files with 5 additions and 6 deletions
|
@ -701,10 +701,12 @@ void start_local_game(saved_game& state)
|
|||
mp_manager("", state).enter_create_mode();
|
||||
}
|
||||
|
||||
void start_local_game_commandline(const game_config_view& game_config, saved_game& state, const commandline_options& cmdline_opts)
|
||||
void start_local_game_commandline(saved_game& state, const commandline_options& cmdline_opts)
|
||||
{
|
||||
DBG_MP << "starting local MP game from commandline" << std::endl;
|
||||
|
||||
const game_config_view& game_config = game_config_manager::get()->game_config();
|
||||
|
||||
// The setup is done equivalently to lobby MP games using as much of existing
|
||||
// code as possible. This means that some things are set up that are not
|
||||
// needed in commandline mode, but they are required by the functions called.
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
class commandline_options;
|
||||
class config;
|
||||
class game_config_view;
|
||||
class saved_game;
|
||||
class wesnothd_connection;
|
||||
|
||||
|
@ -41,8 +40,7 @@ void start_local_game(saved_game& state);
|
|||
* Same parameters as start_local_game plus:
|
||||
* cmdline_opts The commandline options
|
||||
*/
|
||||
void start_local_game_commandline(const game_config_view& game_config,
|
||||
saved_game& state, const commandline_options& cmdline_opts);
|
||||
void start_local_game_commandline(saved_game& state, const commandline_options& cmdline_opts);
|
||||
|
||||
/** Starts a multiplayer game in client mode.
|
||||
*
|
||||
|
|
|
@ -972,8 +972,7 @@ bool game_launcher::play_multiplayer_commandline()
|
|||
events::discard_input(); // prevent the "keylogger" effect
|
||||
cursor::set(cursor::NORMAL);
|
||||
|
||||
mp::start_local_game_commandline(
|
||||
game_config_manager::get()->game_config(), state_, cmdline_opts_);
|
||||
mp::start_local_game_commandline(state_, cmdline_opts_);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue