Create Engine: if only one difficulty is defined, use it without a dialog prompt
This commit is contained in:
parent
8905b9e84c
commit
7ec92eb754
1 changed files with 5 additions and 0 deletions
|
@ -600,6 +600,11 @@ std::string create_engine::select_campaign_difficulty(int set_value)
|
|||
return "";
|
||||
}
|
||||
|
||||
// One difficulty found. Use it
|
||||
if(difficulties.size() == 1) {
|
||||
return difficulties[0];
|
||||
}
|
||||
|
||||
// A specific difficulty value was passed
|
||||
// Use a minimilistic interface to get the specified define
|
||||
if(set_value != -1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue