fix #2648: allow load turn in local multiplayer
this commit handles the load_game_exception thrown when the user presses the button to load a specific turn.
This commit is contained in:
parent
a930b63903
commit
f56fece450
1 changed files with 6 additions and 1 deletions
|
@ -968,7 +968,12 @@ bool game_launcher::play_multiplayer_commandline()
|
|||
events::discard_input(); // prevent the "keylogger" effect
|
||||
cursor::set(cursor::NORMAL);
|
||||
|
||||
mp::start_local_game_commandline(cmdline_opts_);
|
||||
try {
|
||||
mp::start_local_game_commandline(cmdline_opts_);
|
||||
} catch(savegame::load_game_exception& e) {
|
||||
load_data_ = std::move(e.data_);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue