Fix difficulty dialog not showing when loading from within a game (bug #24925)
This also removes a now-superfluous check in show_difficulty_dialog(), since the state of the difficulty checkbox is handled within the dialog
This commit is contained in:
parent
feb64ddbfe
commit
7fae63e471
1 changed files with 4 additions and 2 deletions
|
@ -120,7 +120,7 @@ void loadgame::show_dialog()
|
|||
|
||||
void loadgame::show_difficulty_dialog()
|
||||
{
|
||||
if(summary_["corrupt"].to_bool() || (is_replay_save(summary_)) || (!summary_["turn"].empty())) {
|
||||
if(summary_["corrupt"].to_bool()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -159,9 +159,11 @@ bool loadgame::load_game()
|
|||
return false;
|
||||
}
|
||||
|
||||
if (select_difficulty_)
|
||||
show_difficulty_dialog();
|
||||
|
||||
// Confirm the integrity of the file before throwing the exception.
|
||||
// Use the summary in the save_index for this.
|
||||
|
||||
const config & summary = save_index_manager.get(filename_);
|
||||
|
||||
if (summary["corrupt"].to_bool(false)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue