Scenario editor can launch unpacked scenario

This commit is contained in:
2025-03-21 13:46:44 -05:00
parent fc36dcfd55
commit 7cce42ce12
7 changed files with 18 additions and 21 deletions

View File

@@ -442,7 +442,7 @@ static void handle_scenario_args() {
// Add the scenario's path to the search paths put_party_in_scen() uses
extra_scen_dirs.push_back(path.parent_path());
}else{
path = locate_scenario(*scen_arg_path);
path = locate_scenario(*scen_arg_path, true);
}
cScenario scenario;
@@ -467,7 +467,7 @@ static void handle_scenario_args() {
resetting = true;
}
if(!univ.party.is_in_scenario()){
put_party_in_scen(path.filename().string(), scen_arg_town || scen_arg_out_sec);
put_party_in_scen(path.filename().string(), scen_arg_town || scen_arg_out_sec, true);
}
}else{
std::cerr << "Failed to load scenario: " << *scen_arg_path << std::endl;