Create Engine: if only one difficulty is defined, use it without a dialog prompt

This commit is contained in:
Charles Dang 2016-08-31 10:35:02 +11:00
parent 8905b9e84c
commit 7ec92eb754

View file

@ -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) {